I need to round some times. I would like to know how I can round a time to the next hour and use that as an int in PHP.
Ex:
24:00:02 -> 25
33:15:05 -> 34
48:40:30 -> 49
Any ideas?
Regards
Claudio
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you handle the time string like a number, PHP treats it like one and removes everyting but the first digits.