> given a date string something like
> 
> 11/03/2004 09:30:27
> 
> Is there a perl mod that will turn this into perl's time() in 
> seconds from day zero?


  use Time::ParseDate;
  $seconds = parsedate("11/03/2004 09:30:27");

if it's a UK-style date (March 11) then you change the line to

  $seconds = parsedate("11/03/2004 09:30:27", UK=>1);

-- 
Mark Thomas 
Internet Systems Architect
_______________________________________
BAE SYSTEMS Information Technology 
2 Massachusetts Ave NE, Ste. 5110
Washington, DC 20212 USA 




> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Hon Shi
> Sent: Wednesday, November 03, 2004 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: string to time
> 
> 

> 
> Thanks
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Check out the new Yahoo! Front Page. 
> www.yahoo.com 
>  
> 
> _______________________________________________
> Perl-Win32-Users mailing list 
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to