From gsaray101 at yahoo.com Sat Jul 7 10:46:12 2007 From: gsaray101 at yahoo.com (mike smith) Date: Sat, 7 Jul 2007 10:46:12 -0700 (PDT) Subject: [Princeton-pm] date calculations Message-ID: <457991.16214.qm@web51910.mail.re2.yahoo.com> 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. Please help. Mike ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ From trockij at arctic.org Mon Jul 9 05:45:57 2007 From: trockij at arctic.org (Jim Trocki) Date: Mon, 9 Jul 2007 08:45:57 -0400 (EDT) Subject: [Princeton-pm] date calculations In-Reply-To: <457991.16214.qm@web51910.mail.re2.yahoo.com> References: <457991.16214.qm@web51910.mail.re2.yahoo.com> Message-ID: 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.