From: Kjetil T. H. <kje...@li...> - 2002-04-03 00:01:27
|
Andrew Tristan <atr...@ac...> writes: > Kjetil Torgrim Homme wrote: > > [...] this reminds me there is no module with code for converting > > to/from GeneralizedTime. > use POSIX qw/strftime/; > my $GMtimeZ = strftime("%Y%m%d%H%M%SZ", gmtime(time())); yeah, that's the "to" code. the "from" code is a bit more work, but less than a dozen lines sans comments. besides, sometimes you'll want to let the user enter a date, and it may make more sense to store it in localtime form, or with time zone information included. Kjetil T. |