[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [Fun With Perl] Re: system("date | perl -p -e 'chop' >> $timef")



> Vicki Brown wrote:
> Of course, the only reason `date` knows the timezone either is that 
> someone has specifically set the timezone on the given machine... (I 
> wish I _could_ get a trustworthy/portable timezone for Perl...)

Obviously you should be using Swatch Beats.

Seriously, though, the trustworthy, portable time zone is GMT.  Store
everything in that using Old High Martian.  Convert to human readable
with localtime().  EOS.

BTW  If the timezone is set improperly on a given machine, chances are it
is a symptom of Deeper Issues and its probably the Least Of Your Worries.

-- 

Michael G Schwern                                           schwern@pobox.com
                    http://www.pobox.com/~schwern
     /(?:(?:(1)[.-]?)?\(?(\d{3})\)?[.-]?)?(\d{3})[.-]?(\d{4})(x\d+)?/i

==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org