John Peacock <[EMAIL PROTECTED]> wrote:

> Peter J. Acklam wrote:
>
> > I didn't mean that Perl is using a TAI library, but the TAI
> > time system or TAI calendar.
>
> Perl is _not_ using TAI, since it is employing an epoch
> corresponding to the Unix epoch (except on Mac's???).

I don't see what the epoch has got to do with it.  The TAI time
system is exactly like UTC except for the leap seconds, and that,
to me, seems very similar to what Perl is using.

> It is, however, not correctly handling leapseconds, which isn't
> too suprising since hardly anything does.  NTP, for example,
> does not handle leapseconds either.

I'm not surprised either that leapseconds are rarely implemented,
since time arithmetic is much easier if you drop the leap seconds.
But software not handling leap seconds is not using the UTC time
system.

Peter

-- 
#!/local/bin/perl5 -wp -*- mode: cperl; coding: iso-8859-1; -*-
# matlab comment stripper (strips comments from Matlab m-files)
s/^((?:(?:[])}\w.]'+|[^'%])+|'[^'\n]*(?:''[^'\n]*)*')*).*/$1/x;

Reply via email to