Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Fetching date

by tcf22 (Priest)
on Jan 21, 2004 at 16:11 UTC ( #322923=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $date = 'Jan 21 00:41';
    my ($mon, $day, $hour, $min) = $date =~ /(\w+)\s(\d+)\s(\d+):(\d+)/;
    foreach($mon, $day, $hour, $min){
        print "$_\n";
    }
    
  2. or download this
    $datehit =~ /(\w+\s\d{2}\s\d{2}\:\d{2})/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2020-08-05 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (35 votes). Check out past polls.

    Notices?