[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 $_
@MyWorka = split (/\D/, $_);
#
# Now date and time should be in @MyWorka as
#[0]: 11
#[1]: 03
#[2]: 2004
#[3]: 09
#[4]: 30
#[5]: 27
Now you should be able to feed into timelocal and have your seconds.
Wags ;)
*******************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
*******************************************************
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs