Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

*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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043832]
Approved by Paladin
Front-paged by rjt
[Corion]: I'm happy I'm not the only one who got a The Thing vibe from The Hateful Eight

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2016-12-09 19:24 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (155 votes). Check out past polls.