Comment Re:Still using Office 2003 (Score 1) 369
.. and I work in a guvmint department where XP+Office2003 is the standard install image
.. and I work in a guvmint department where XP+Office2003 is the standard install image
I was doing leap second testing in the last month and I'm pretty sure that date
returns
23:59:58
23:59:59
23:59:59
00:00:00
as you go through the leap second addition
(Un)fortunately, not at work so I can't double check but a quick look at the date source code suggests that this is indeed
its behaviour on Linux.
You're right.
An application will see two 23:59:59 timestamps (in Linux anyway) because the
clock is stepped back by 1 s during an addition.
In ntp.c second_overflow() it says
* Leap second processing. If in leap-insert state at the end of the
* day, the system clock is set back one second; if in leap-delete
* state, the system clock is set ahead one second.
*/
and at the time the leap second goes in
case TIME_INS:
if (secs % 86400 == 0) {
leap = -1;
time_state = TIME_OOP;
time_tai++;
printk(KERN NOTICE "Clock: inserting leap second 23:59:60 UTC\n");
}
break;
and in timekeeping.c it says
leap = second_overflow(timekeeper.xtime.tv_sec);
timekeeper.xtime.tv_sec += leap;
timekeeper.wall_to_monotonic.tv_sec -= leap;
where xtime is the "current time"
Kleeneness is next to Godelness.