laziness, impatience, and hubris | |
PerlMonks |
Date/Time Manipulationby RobertJ (Acolyte) |
on May 24, 2016 at 18:01 UTC ( [id://1164007]=perlquestion: print w/replies, xml ) | Need Help?? |
RobertJ has asked for the wisdom of the Perl Monks concerning the following question: Hello, been a while since my last visit. Looking for a simple (hopefully) way of subtracting one hour from date - time in a file. The file is a text file of the following format: 2016-05-16 10:51:07 random text1 2016-05-16 11:58:37 random text2 2016-05-16 12:01:49 random text3 All the times are during the daytime so I do not have to worry about "role-over" at midnight. I simply want to change the above to 2016-05-16 09:51:07 random text1 2016-05-16 10:58:37 random text2 2016-05-16 11:01:49 random text3 I have BBEdit which will run Perl and on a Mac with the latest Perl modules that come with the OS.
Back to
Seekers of Perl Wisdom
|
|