Re: Convert date to timestamp SOLVED

2005-12-02 Thread Rafael Morales
Thanks, to Timothy and Shawn four your help and time. -- ___ Get your free email from http://mymail.bsdmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Convert date to timestamp

2005-12-02 Thread Shawn Corey
Timothy Johnson wrote: Correction: That line should be: my $perlTime = timelocal("01","01","01",$day,$month - 1,$year); You should use noon, not midnight (or close to it). my $unix_epoch = timelocal( 0, 0, 12, $day, $month - 1, $year - 1900 ); Here in North America (at least in most places)

RE: Convert date to timestamp

2005-12-02 Thread Timothy Johnson
orales'; beginners@perl.org Subject: RE: Convert date to timestamp Here's an example: ## use strict; use warnings; use Time::Local; my $textTime = "2005-09-01"; my ($year,$month,$day) = split(/-/,$textTime); my $perlTime = ti

RE: Convert date to timestamp

2005-12-02 Thread Timothy Johnson
t: Friday, December 02, 2005 12:01 PM To: Timothy Johnson; beginners@perl.org Subject: RE: Convert date to timestamp I can`t find the way for do it with Time::Local, could you explain me please :) - Original Message - From: "Timothy Johnson" <[EMAIL PROTECTED]> To: "R

RE: Convert date to timestamp

2005-12-02 Thread Rafael Morales
I can`t find the way for do it with Time::Local, could you explain me please :) - Original Message - From: "Timothy Johnson" <[EMAIL PROTECTED]> To: "Rafael Morales" <[EMAIL PROTECTED]>, beginners@perl.org Subject: RE: Convert date to timestamp Date

RE: Convert date to timestamp

2005-12-02 Thread Timothy Johnson
Personally I like Time::Local for this kind of calculation, but there are some Date:: modules out there that can do it too. -Original Message- From: Rafael Morales [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 11:23 AM To: beginners@perl.org Subject: Convert date to timestam