I have a few links for those who might have interest in the issue:
Something about leap seconds:
http://tycho.usno.navy.mil/leapsec.html The GNU Libc date/time info says, that the time on GNU/Linux may include leap seconds in some cases:
http://docs.linux.cz/glibc-manual/libc_21.html On my personal Linux system with Danish locale, time() doesn't do leap seconds, so I guess it's rare to see computer systems that do leap seconds. The difference between POSIX time and the actual number of seconds since january 1st, 1970 UTC, is about 14 seconds, and this small difference is usually handled by adjusting the time of the computer regularly. SPF doesn't rely on time being more precise than 1 second, so it's a non-issue.
The rest of my e-mail is copy & paste from somewhere on the net (use google if you want to find out where), but I don't think it's an important issue for SPF, since POSIX time is standardized until year 2038, and after that they will probably have fixed the problem described:
IEEE Std 1003.1-1996 contains an error in section 2.2.2.113 which defines
the term "seconds since the Epoch". The error is that the expression:
tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 +
(tm_year-70)*31536000 + ((tm_year-69)/4)*86400
does not correctly account for leap years. It adds one day for every
four years, thus disregarding the rule that years divisible by 100 are
only leap years if also divisible by 400.
The expression produces incorrect values for years 2101 onwards, and
so the error could perhaps be called a "Year 2101 bug". Of course,
this does not affect implementations with a (signed) 32-bit time_t,
which can only represent years up to 2038, and this probably explains
why the necessary extra parts of the expression were omitted in the
original 1988 standard.
Lars.
-----Oprindelig meddelelse-----
Fra: owner-spf-devel@v2.listbox.com på vegne af Theo Schlossnagle
Sendt: to 08-04-2004 00:08
Til: spf-devel@v2.listbox.com
Emne: Re: [spf-devel] UTC epoch seconds notation
Daryl Odnert wrote:
> Section 7.1 of the SPF specification makes reference to the "current
> timestamp in UTC epoch seconds notation." Can somebody please provide
> a reference to where this notation is defined? I'd like to request
> that the SPF spec be updated to provide the reference too.
The textual form of the number of seconds since 1970 UTC, as described
by the "time" function conforming to IEEE Std 1003.1-2001 (``POSIX.1'').
-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to
http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com