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;