[EMAIL PROTECTED] (Rich Bowen) writes:

> rbowen@rhiannon:~% perl -MDate::ISO -le 'my $d=Date::ISO->new( epoch =>
> time ); print $d->iso;'
> 2001-W44-6
> 
> Unfortunately, the "default" ISO date format is this year-week-day
> format. At least that's what I gathered from all the web sites that I
> read about this format.

ISO 8601 specifies multiple notations.  For everything I have ever
done, the notation you choose seems ... uh, not so useful. :-)

http://www.cl.cam.ac.uk/~mgk25/iso-time.html gives a pretty good
overview of the standard.

Something like 

  strftime("%Y-%m-%dT%H:%M:%SZ", gmtime(time));

seems more useful.  It gives

$ perl -MPOSIX=strftime -e 'print strftime("%Y-%m-%dT%H:%M:%SZ\n", gmtime(time))';
2001-11-25T14:56:48Z



 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();

Reply via email to