RE: string to time

2004-11-03 Thread Thomas, Mark - BLS CTR
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 =

RE: string to time

2004-11-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: given a date string something like 11/03/2004 09:30:27 Is there a Perl mod that will turn this into peril's time() in seconds from day zero? Thanks You would need to parse the data which you could do in two steps: # Assumes you date/time is in $_

Re: string to time

2004-11-03 Thread $Bill Luebkert
Wagner, David --- Senior Programmer Analyst --- WGO wrote: [EMAIL PROTECTED] wrote: given a date string something like 11/03/2004 09:30:27 Is there a Perl mod that will turn this into peril's time() in seconds from day zero? Thanks You would need to parse the data which you could do