Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

*SOLVED* High-speed Date Formatting

by Endless (Beadle)
on Jul 11, 2013 at 23:09 UTC ( [id://1043832]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Dates of form 'Fri, 01 Mar 2013 01:21:14 +0000'
    my $created_at = str2time($value);
    
  2. or download this
    use Inline C => q@
    int epoch_sec(char * date) {
    ...
    our $date = "Fri, 01 Mar 2013 01:21:14 +0200";
    my $newDate = epoch_sec($date);
    say $newDate;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1043832]
Approved by Paladin
Front-paged by rjt
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found