skip to Main Content

php time round up & round down

I am using the following function to round the time to closest 15 minutes. function roundTime($time){ $seconds = $time; $rounded_seconds = round($seconds / (15 * 60)) * (15 * 60); return date('H:i', $rounded_seconds) . "n"; } What I actually need…

VIEW QUESTION

Javascript and Excel DB

I made a Javascript nodejs project that stores data in Excel. I can access all columns in the entire file without any problems, but the value of the cells containing time information(12:30) is given as numbers(0.6423611111111112). Is it possible to…

VIEW QUESTION
Back To Top
Search