Get Time From String - Perl -
Get Time From String - Perl -
in php do
strtotime("+1 days");
and machine time next day.
i want seek same perl, i'm going doing sort of cron job execute methods.
i know utilize str2time
module http://search.cpan.org/~gaas/http-date-6.02/lib/http/date.pm can't seem figure out.
i tried following, i'm unsure if did right
use http::date qw(str2time); utilize time::piece; utilize time::seconds; $lol = localtime(); $time = $lol - one_hour*($lol->hour + 24); print "time: " . str2time($time);
use time::piece; utilize time::seconds; $t1 = localtime() + one_day; print $t1->epoch;
perl
Comments
Post a Comment