in reply to Simple date and time manipulation
This could of course be shortened for less claritysub ISO_date_format{ my $epoch_date = shift; my @localtime = localtime($epoch_date); my $iso_date = sprintf ("%4d-%0.2d-%0.2d", $localtime[5] + 1900, $localtime[4]+ 1, $localtime[3]); return ($iso_date); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple date and time manipulation
by thargas (Deacon) on Jan 19, 2011 at 12:52 UTC |