Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Answer: Fast(er) date parsing

by crazyinsomniac (Prior)
on Jul 19, 2000 at 03:01 UTC ( #23081=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > Fast(er) date parsing - Answer contributed by crazyinsomniac

my( $day, $month, $date, $time, $hour, $min, $sec, $year); ($day,$month,$date,$time,$year)=split(" ","Mon Jul 17 17:59:31 2000"); ($hour,$min,$sec)=split(":",$time);

Replies are listed 'Best First'.
(crazyinsomniac) RE: Answer: Fast(er) date parsing
by crazyinsomniac (Prior) on Jul 19, 2000 at 03:03 UTC
    Sorry about that
    my $day; my $month; my $date; my $time; my $hour; my $min; my $sec; my $year; ($day,$month,$date,$time,$year)=split(" ","Mon Jul 17 17:59:31 2000") +; ($hour,$min,$sec)=split(":",$time);
     ______________________________________________
    |_____¸.·ooO--(> cRaZy is co01. <)--Ooo·.¸_____|
     ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
    
      my ($day,$month,$date,$hour,$min,$sec,$year)=split /[ :]/,"Mon Jul 17 +17:59:31 2000";
      cLive ;-)
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[atcroft]: Discipulus: I looked back at your note about my Padre question from a while back, and it made me look again... as a result, I found what I was missing and was able to make the change. Thank you!

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2018-02-24 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (311 votes). Check out past polls.

    Notices?