Agnus Dei (jackal) wrote,
Agnus Dei
jackal

Date to Epoch time in perl

Fastest way to convert date to epoch time in perl:


#!/usr/bin/perl

use Date::Parse;

my $date="2014-11-01";
my $epoch_date=str2time($date);

print $epoch_date;
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments