in reply to Date to Epoch
I have found a way to do this but it is messy:
perl -MPOSIX -MTime::Local -se 'print scalar timelocal($a, $b, $c, $d, $e, $f)' -- -a=$sec -b=$min -c=$hour -d=$day -e=$month -f=$yearIs there a more simpler approach as the one proposed earlier?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Date to Epoch
by haukex (Archbishop) on Mar 20, 2018 at 15:11 UTC | |
by Anonymous Monk on Mar 20, 2018 at 17:40 UTC |