Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Date conversion to epoch w/out mysql.pm

by vek (Prior)
on Jan 06, 2006 at 16:18 UTC ( #521517=note: print w/replies, xml ) Need Help??


in reply to Date conversion to epoch w/out mysql.pm

suaveant's reply has you covered, Time::Local would be my choice if you cannot install Date::* modules from the CPAN.

use Time::Local; my $epoch = timelocal($sec, $min, $hours, $mday, $mon, $year);

-- vek --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://521517]
help
Chatterbox?
[erix]: we aim to satisfy
[erix]: churches are good excuses for large-scale architecture -- which is nice
[marto]: not to be confused with Chvrches

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-07-28 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (431 votes). Check out past polls.