[Princeton-pm] date calculations

Jim Trocki trockij at arctic.org
Mon Jul 9 05:45:57 PDT 2007


On Sat, 7 Jul 2007, mike smith wrote:

> Hello:
>
> I have an array that has the following values:
> "07/03/2007 11:47:50"  "07/03/2007 11:47:50"
> "07/03/2007 11:47:50"  "07/03/2007 10:48:05".
>
> I want to be able to subtrack array[4]-array[3],
> array[3]-array[2] and array[2]-array[1].
>
> How do I first convert these values to date and time
> format so that I can calculate the second difference
> between them.

Try Date::Manip.


More information about the Princeton-pm mailing list