Mittal, Manish wrote:

> Hi,
> 
>    This is probably pretty simple, but I needed to know the various ways
> to find the time/date difference between two date/time values.
> 
> I have a time stamp in the UTC format, up to seconds.

What does that mean 'UTC format' ?  Do you mean some ASCII respresentation
of the date and time that's UTC based ?  If so, what does it look like ?

My simple answer is to convert to epoch using Time::Local::timegm and
then subtract and format using POSIX::strftime.

Depending on what your date format looks like, you may have to use a
hash for converting non-numeric months.

There are also modules that will do this that you can D/L like Date::Manip
and Date::Calc, but I usually avoid them for simple problems.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to