you can use one of the CPAN modules,  called Time::Format.

On 8/9/07, Srinivas <[EMAIL PROTECTED]> wrote:
>
> perldoc -q "How can I compare two dates and find the difference"
>
> Wagner, David --- Senior Programmer Analyst --- WGO wrote:
> >> -----Original Message-----
> >> From: timbo [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, August 08, 2007 07:03
> >> To: beginners@perl.org
> >> Subject: calculating time difference with localtime
> >>
> >> Once I calculate the difference between 2 epoch times, is there a way
> >> I can convert the difference into a proper time format?
> >>
> >> For example...
> >>
> >> $difference = 13452
> >>
> >> then convert it to show
> >>
> >> timedifference = 35 minutes
> >>
> >> Thanks in advance.
> >>
> >>
> >       Either spin your own or find a CPAN module . Usually easier to
> > write your own little routine to take seconds and come back with hours,
> > minutes, seconds or if necessary days, hours, etc.
> >
> > Wags ;)
> >
> >> --
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> http://learn.perl.org/
> >>
> >>
> >>
> >>
> >
> > **********************************************************************
> > This message contains information that is confidential and proprietary
> to FedEx Freight or its affiliates.  It is intended only for the recipient
> named and for the express  purpose(s) described therein.  Any other use is
> prohibited.
> > **********************************************************************
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>


-- 
Eko Budiharto

Reply via email to