#Win32 version
C:\>perl -MPOSIX -e "$ENV{TZ}='US/Eastern';print ctime(10**9)"


----- Original Message -----
From: "Daniel R. Allen" <[EMAIL PROTECTED]>
To: "Bill Ricker" <[EMAIL PROTECTED]>
Cc: "John Tobey" <[EMAIL PROTECTED]>; "Uri Guttman"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, August 05, 2001 11:12 PM
Subject: Re: [Boston.pm] tech meeting


> Eep.  I thought I took that into account, but didn't.  Here is a corrected
> version:
>
> >perl -MPOSIX -e'$ENV{TZ}="US/Eastern";print ctime(10**9)'
> Sat Sep  8 21:46:40 2001
>
> Howzat, works on my linux system at least.
>
> -Daniel
>
> On Sun, 5 Aug 2001, Bill Ricker wrote:
>
> > But Daylight Time will be in effect then ... so first poster was correct
with
> > 9:46 pm  ... but it's better to think UTC, because (a) the Epoch was
midnight
> > Greenwhich Mean Time (try ctime(0)), and (b) in UTC it's 9/9/01 or
001/9/9 as
> > you prefer.
> >
> > Unambiguously, ISO standard time is 2001-09-09-01:46:40Z.
> >
> > > > perl -MPOSIX -e'$ENV{TZ}="EST";print ctime(10**9)'
> > > Sat Sep  8 20:46:40 2001
> > > >     $ perl -le 'print scalar localtime 1e9'
> > > >     Sat Sep  8 21:46:40 2001
> >
>
>

Reply via email to