in reply to Re^2: Epoch to specific output
in thread Epoch to specific output

Pass your variable as an additional argument, use @ARGV to get it from inside the program:
perl -MPOSIX -le'print strftime("%m%d%H%M", gmtime $ARGV[0])' "$x"

Replies are listed 'Best First'.
Re^4: Epoch to specific output
by choroba (Cardinal) on Jan 02, 2014 at 21:31 UTC
    Or just use shift:
    perl -MPOSIX -le 'print strftime("%m%d%H%M", gmtime shift)' "$x"
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ