try Time::Duration Dan <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know about localtime(time); But I was wondering if there was a formula > out there like 1066442632/60/60/24 that will say today is say 2003 10 17. > > thanks > > > On Oct 17, [EMAIL PROTECTED] said: > > > >>> [EMAIL PROTECTED] wrote: > >>> > >>>> How can I convert it to a readable date? > >>>> > >>>> $now=time; > >>>> > >>>> print $now return 1066442632 > >>>> > >>>> I had tied perldoc time but it says: > >>>> No documentation found for "time". > >>>> > >>> > >>> perldoc -f time > >>> perldoc -f localtime > >> > >>Thanks, now I know how to use perldoc. But how do I convert that time? > >>I have an application that stores it in that format. > > > > You were just shown; read the documentation for the localtime() function: > > > > perldoc -f localtime > > > > It takes the time value as its argument, or uses time() if you don't give > > it one: > > > > $now = localtime; > > $then = localtime($some_number_of_seconds); > > > > -- > > Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ > > RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ > > <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. > > [ I'm looking for programming work. If you like my work, let me now. ] > > > > > > > > ----------------------------------------- > eMail solutions by > http://www.swanmail.com
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]