Re: time format conversion

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Rob Dixon" To: Cc: "shawn wilson" Sent: Thursday, April 21, 2011 1:14 PM Subject: Re: time format conversion On 21/04/2011 10:52, shawn wilson wrote: If its always in that format, just split and define a hash and pass it t

Re: time format conversion

2011-04-21 Thread Rob Dixon
On 21/04/2011 10:52, shawn wilson wrote: On Apr 21/04/2011 5:38 cc wrote: In PHP, there's strtotime(), but there isn't one in Perl that I can find. Why would I want to bloated my core to mess with dates when half of what I do doesn't need that functionality? Because the 'bloat' is very tiny

Re: time format conversion

2011-04-21 Thread shawn wilson
On Apr 21, 2011 12:17 PM, "Karl Kaufman" wrote: > > Alternatives to shawn's response (w/o commenting on relative benefits)... You won't mention the benefits, but I will... :) > > - Original Message - From: "cc" > To: > Sent: Thursda

Re: time format conversion

2011-04-21 Thread Karl Kaufman
Alternatives to shawn's response (w/o commenting on relative benefits)... - Original Message - From: "cc" To: Sent: Thursday, April 21, 2011 4:37 AM Subject: time format conversion Hi, I have two strings that shows different times and I want to find the differenc

Re: time format conversion

2011-04-21 Thread shawn wilson
On Apr 21, 2011 5:38 AM, "cc" wrote: > > Hi, > > I have two strings that shows different times and I > want to find the difference in # of hours. > DateTime? search.cpan.org/~drolsky/DateTime-0.66/lib/DateTime.pm > In PHP, there's strtotime(), but there isn't one > in Perl that I can find. > Why

time format conversion

2011-04-21 Thread cc
Hi, I have two strings that shows different times and I want to find the difference in # of hours. In PHP, there's strtotime(), but there isn't one in Perl that I can find. The string format is: mm/dd/ hh:mm:ss So if t1 and t2 are of the aforementioned format, I just do a t2 - t1 and it sho