Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Modifying Global Variable

by gryphon (Abbot)
on Jan 08, 2003 at 18:02 UTC ( #225312=note: print w/replies, xml ) Need Help??


in reply to Modifying Global Variable

Greetings Willman023

If you want to just convert from your YYYY-MM-DD HH:MM:SS format into UNIX time, then why not just use CPAN's Date::Parse?

use Date::Parse; print str2time('2003-01-08 09:55:36'), "\n";

Or if you want to just save the datetime into $date:

use Date::Parse; my $date = str2time('2003-01-08 09:55:36');

gryphon
code('Perl') || die;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://225312]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-11-30 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?