Dave Rolsky <[EMAIL PROTECTED]> wrote:
> My article about date/time handling with Perl is now on perl.com at
> http://www.perl.com/pub/a/2003/03/13/datetime.html
You write:
"UTC is a good standard for the _internal_ representation of
dates and times, as it makes comparing datetimes or doing
datetime math much easier."
But DateTime isn't using UTC -- it's just pretending it is in the
docs. You should either stop violating the standard and start
support UTC, or stop saying you are using UTC.
"UTC stands for "Coordinated Universal Time". It is an
international standard which is kept using atomic clocks, and
is kept to within 0.9 seconds of the rotation of the earth on
its axis in order to work well with traditional standards of
time-keeping.
Exactly -- and these two time systems are kept in sync by adding
or subtracting seconds every now and then. This is an essential
part of UTC which you happily ignore.
It's fine if you don't want to support leap second, but then you
shouldn't say that you are using UTC, because you simply aren't.
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;