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: Thursday, April 21, 2011 4:37 AM > Subject: time format conver

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 difference in # of hours.

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

Re: Time format

2006-11-15 Thread John W. Krahn
Jm lists wrote: > Hi members, Hello, > I want to get this format of time: > > 11.07.06 12:00 pm > > can you tell me how to get it?(maybe need to be translated from the > 'localtime') Thanks. use POSIX 'strftime'; my $date = strftime '%m.%d.%y %I:%M %p', localtime; John -- Perl isn't a tool

Re: Time format

2006-11-15 Thread Rob Dixon
Jm lists wrote: Hi members, I want to get this format of time: 11.07.06 12:00 pm can you tell me how to get it?(maybe need to be translated from the 'localtime') Thanks. Is that 11 July or 7 November? Swap the day and month around in the output format in the program below if you wanted the l

Re: Time format

2006-11-15 Thread Jm lists
Very cool!Thanks. 2006/11/15, Ricardo SIGNES <[EMAIL PROTECTED]>: * Jm lists <[EMAIL PROTECTED]> [2006-11-15T09:57:44] > Hi members, > > I want to get this format of time: > > 11.07.06 12:00 pm > > can you tell me how to get it?(maybe need to be translated from the > 'localtime') Thanks. Consu

Re: Time format

2006-11-15 Thread Ricardo SIGNES
* Jm lists <[EMAIL PROTECTED]> [2006-11-15T09:57:44] > Hi members, > > I want to get this format of time: > > 11.07.06 12:00 pm > > can you tell me how to get it?(maybe need to be translated from the > 'localtime') Thanks. Consult "perldoc -f localtime": #012 3 45

Re: Time::Format

2004-01-26 Thread Owen
On Mon, 26 Jan 2004 14:57:35 -0500 "Paul Kraus" <[EMAIL PROTECTED]> wrote: > Since I added use Time::Format qw( %time } I get this error on any die > statement or end of program. > > Everything runs fine and the program works fine it just dumps this at the > end. > > Can't locate I18N/Langinfo.p