Hi everyone,

Im very new to Perl and am trying to write a web front end to an existing
MDB that we use at work.

One of the things I am wanting to do, is calculate the age of records in the
MDB, each record has a text field containing the date and time in the
following format "2001-06-12 15:47:07".

At the moment, I have been trying to write code to use Date:Manip to convert
the time string into seconds elapsed since Jan 1st 1970 and then subtracting
this number from the result of using $currentTime = time. From the
Date::Manip docs it seems that the following code below should give me the
seconds since 1st Jan 1970.

$secs = &UnixDate($date,"%s");

When ever I use this I just get errors about Manip being unable to determine
the timezone.

Is there something I am missing/doing completely wrong, or is there an
easier way for me to do this ?

Many thanks

Adrian.
0

Reply via email to