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

Re: Time Conversion



On Sat, Apr 07, 2001 at 11:24:21AM -0700, brian moore wrote:
> On Sat, Apr 07, 2001 at 01:09:32PM -0400, tps@unslept.com wrote:
> > I saw somewhere recently a perl oneliner to convert epoch time to
> > normal time. Does anyone have this, or a pointer to it?
> 
> You mean like:
> 
> [durin:~] 159 % perl -e 'print scalar localtime (986667817), "\n"'
> Sat Apr  7 11:23:37 2001

That's it! Thanks!

Tim

-- 
   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
   >> Tim Sailer (at home)             ><  Coastal Internet, Inc.          <<
   >> Network and Systems Operations   ><  PO Box 671                      <<
   >> http://www.buoy.com              ><  Ridge, NY 11961                 <<
   >> tps@unslept.com/tps@buoy.com     ><  (631) 924-3728                  <<
   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<



Reply to: