Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Optimal Date conversion? (Too much information)

by dws (Chancellor)
on Dec 29, 2004 at 17:24 UTC ( [id://418027]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my %date_convert = (
        ...
        'Dec 29' => '04-12-29',
        ...
      );
    
  2. or download this
      my $day_re = '(?:Mon|Tue|...|Sun)';
      my $mon_re = '(?:Jan|Feb|...|Dec)';
      my $time_re = '\d\d:\d\d:\d\d';
    
      $text =~ s/$day_re ($mon_re \d+) ($time_re)/$date_convert{$1} . "_" 
    +. $2/ge;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-23 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found