Subject: | DateTime says 59.6 is an invalid value for "seconds" |
Run this script:
#!/usr/bin/perl -w
use strict;
use DateTime;
print DateTime->VERSION . "\n";
my $dt = DateTime->new({
year => 2009,
second => 59.6,
});
And DateTime will throw the following error:
Invalid second value (59.6)
This happens for any fractional second value > 59. It doesn't happen for
fractional second values below 59.
I'd say that 59.6 is a perfectly valid number of seconds.