That may be so according to the most recent 8601 standard, but as far as Perl is concerned it is not. For example, Date::Manip claims to be able to handle ISO 8601 date formats, but the following will fail:
use strict;
use Date::Manip;
my $string = "2004-11-15T18:59:52.863Z";
my $date = ParseDate($string);
print $date,"\n";
| [reply] [d/l] |
Date::Manip claims to be able to handle ISO 8601 date formats, but the following will fail
It seems Date::Manip only understands a subset of valid ISO 8601 formats. Again, I suggest the DateTime collection of modules that have been mentioned elsewhere in this discussion.
The DateTime modules do a good job of dealing with dates, times, intervals, timezone differences, daylight savings time, and other things that make this type of programming more difficult than first appearances suggest.
| [reply] |