in reply to Epoch to specific output
This *seems* to do what you are asking, at least for my first test:
You could use localtime in place of gmtime, but then you would have to consider what you want to occur when there are DST (daylight saving time) changes.perl -MPOSIX -e 'my $t = time; print strftime("%m%d%H%M", gmtime $t);'
Hope that helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Epoch to specific output
by Anonymous Monk on Jan 02, 2014 at 18:47 UTC | |
by aitap (Curate) on Jan 02, 2014 at 21:01 UTC | |
by choroba (Cardinal) on Jan 02, 2014 at 21:31 UTC |