in reply to Convert Time to Epoch Using External Variable
perl -MPOSIX -e 'print mktime @ARGV' -- 56 34 12 4 1 115
If you need to use the standard input and the comma separated format, use split:
echo 56,34,12,4,1,115 | perl -MPOSIX -e 'print mktime split /,/, <>'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert Time to Epoch Using External Variable
by QM (Parson) on Feb 04, 2015 at 15:08 UTC | |
by johngg (Canon) on Feb 04, 2015 at 22:49 UTC | |
|
Re^2: Convert Time to Epoch Using External Variable
by Anonymous Monk on Feb 04, 2015 at 15:03 UTC |