in reply to Re^2: changing date format in and out
in thread changing date format in and out
Take the code that was given to you by mr_mischief, and save it in a file (lets call it foo.pl). Then just pass your input file through that, ie:
Although, you will probably want to change the line:perl foo.pl < infile > outfile
to read:print (gmtime $_);
Or alternatively, if you want your output in local time, then:print scalar gmtime($_);
Hope this helps,print scalar localtime($_);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: changing date format in and out
by gio001 (Acolyte) on Feb 14, 2009 at 03:46 UTC | |
by McDarren (Abbot) on Feb 14, 2009 at 03:53 UTC | |
by AnomalousMonk (Archbishop) on Feb 14, 2009 at 05:57 UTC | |
by gio001 (Acolyte) on Mar 23, 2011 at 17:55 UTC |