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

AW: Converting 12 hour time format to 24 hour format ... a bit urgent

2010-04-07 Thread Thomas Bätzler
newbie01 perl asked: > Unfortunately, I suddenly have to to deal with an input file where the > datetime format is 02-Apr-2010 3:41:23 p.m., i.e. DD-MON- HH:MI:SS > a.m./p.m., so now my Delta_YMDHMS does not work as expected. You can convert from a.m./p.m. to standard 24 hours using a simple

Converting 12 hour time format to 24 hour format ... a bit urgent

2010-04-07 Thread newbie01 perl
Hi all, I have a Perl script that uses Date::Calc to calculate difference between two datetime variables using Decode_Month and Delta_YMDHMS. ( $yy, $mm, $dd, $hh, $mi, $ss ) = Delta_YMDHMS( $logical_yy, $logical_mm, $logical_dd, $logical_hh, $

Re: class DBI postgres date time format

2009-03-17 Thread Dermot
2009/3/17 ken uhl : > How do I set up table class method to correctly format and write 'updated' >  column  date and time stamp to postgres? > > I have table entry object that contains this - to inflate and deflate : > > I think I need to add  "has_timestamp" > . > >    22 __PACKAGE__->table('d

class DBI postgres date time format

2009-03-17 Thread ken uhl
How do I set up table class method to correctly format and write 'updated' column date and time stamp to postgres? I have table entry object that contains this - to inflate and deflate : I think I need to add "has_timestamp" . 22 __PACKAGE__->table('dhcpmac'); 23 __PACKAGE__-

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

Time format

2006-11-15 Thread Jm lists
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.

RE: Translate standard date/time format to EPOCH seconds

2005-05-02 Thread Manav Mathur
|-Original Message- |From: John Doe [mailto:[EMAIL PROTECTED] |Sent: Tuesday, May 03, 2005 1:50 AM |To: beginners@perl.org |Subject: Re: Translate standard date/time format to EPOCH seconds | | |Am Montag, 2. Mai 2005 19.52 schrieb Charles K. Clarkson: |> [EMAIL PROTECTED] <

Re: Translate standard date/time format to EPOCH seconds

2005-05-02 Thread John Doe
Am Montag, 2. Mai 2005 19.52 schrieb Charles K. Clarkson: > [EMAIL PROTECTED] wrote: > : Again, I cannot use a module in this situation due to limitations of > : the runtime environment. > > Well. you could find a module that does what you want. Then lift > out those

RE: Translate standard date/time format to EPOCH seconds

2005-05-02 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : Again, I cannot use a module in this situation due to limitations of : the runtime environment. Well. you could find a module that does what you want. Then lift out those subs and put them in your script. HTH, Charles K. Clarkson -- M

Translate standard date/time format to EPOCH seconds

2005-05-02 Thread jason_normandin
Good morning All. I am looking for a way to translate date/timestamps in various formats to EPOCH seconds without using a module (cannot use a module in this situation other then the standard modules installed with Perl). I am going to create a subroutine and parse the date/timestamp passed int

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 &

Time::Format

2004-01-26 Thread Paul Kraus
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.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at (eval 1) line 30, l