Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

*SOLVED* High-speed Date Formatting

by Endless (Beadle)
on Jul 11, 2013 at 23:09 UTC ( #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
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? | Other CB clients
Other Users?
Others studying the Monastery: (19)
As of 2015-07-02 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls