Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2018-02-23 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (302 votes). Check out past polls.

    Notices?