in reply to Re: convert it to unix time stamp
in thread convert it to unix time stamp
#use strict; use warnings; use Time::Local; my @day_Of_Month={5,16,20}; #i want to use this array one by one to do unix time stamp use Time::Piece; my $t = localtime($^T); print 'entire time: ', $t; print "\n"; print 'Month: ', $t->month; print "\n"; print 'Year: ', $t->year; print "\n"; $updatetime = timegm(59,59,23,$dayOfMonth,$month-1,$year); print $updatetime;
im using this to create unix timestamp. but as im extracting the month and year, from localtime and the date of the month i have kept in the array that i will use to change to unix timestamp. how will i do unix timestamp for three given dates thats written in the array??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: convert it to unix time stamp
by sn1987a (Curate) on Feb 21, 2014 at 12:53 UTC | |
|
Re^3: convert it to unix time stamp
by Bloodnok (Vicar) on Feb 21, 2014 at 12:06 UTC | |
|
Re^3: convert it to unix time stamp
by Not_a_Number (Prior) on Feb 21, 2014 at 20:06 UTC | |
|
Re^3: convert it to unix time stamp
by Anonymous Monk on Feb 21, 2014 at 17:33 UTC |