Reply to post: Unix/Linux has ALWAYS handled a minute with 61 seconds in it

Google turns on free public NTP servers that SMEAR TIME

Anonymous Coward
Anonymous Coward

Unix/Linux has ALWAYS handled a minute with 61 seconds in it

The 'struct tm' that holds time in year, minutes, seconds, etc. has allowed tm_sec to go from 0-60 (instead of 0-59) for this very reason since before I first touched Unix 25 years ago, and presumably from day one for Linux. So Android and iOS should be perfectly fine. As for Windows, who the hell knows?

Now some applications may not be coded properly to expect that extra second and get a tm->tm_sec == 60, but this is hardly the fault of the OS, it is the fault of the application!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon