Villetta Rizzello


Bed & Breakfast

Richiedi disponibilità

A time difference function that outputs the time passed

Inserito il 05/06/2017

The number of 86,400 seconds in a day comes from the assumption of 60 seconds per minute, 60 minutes per hour and 24 hours per day: 60*60*24. But not every day has 24 hours. This edge case occurs on the days that clocks change as we enter and leave daylight savings (summer) time. Date and time arithmetic is logically consistent and correct when you use PHP built-in functions, but it may not always work as expected if you try to write your own date and time arithmetic.