Leap second and date()

With leap second, I think date() function won’t work properly, right ?
Or, does it have something that makes it work properly ?
I wonder if there are too many leap seconds. date() function will be inaccurate.

It works off the server time so it all depends on when/if the server gets synchronised to the exact time.

Computers are not very accurate timekeepers anyway to being accurate to a few seconds is probably the best you can expect. Even if your server is out by all the leap seconds there have ever been it will still be within a minute of the right time.

Changes to/from daylight saving time have a far greater impact on calculations involving dates.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.