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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date/Time Manipulation
by johngg (Canon) on May 24, 2016 at 18:50 UTC | |
|
Re: Date/Time Manipulation
by hippo (Archbishop) on May 24, 2016 at 18:55 UTC | |
by Anonymous Monk on May 25, 2016 at 14:01 UTC | |
by RobertJ (Acolyte) on May 25, 2016 at 14:04 UTC | |
by johngg (Canon) on May 25, 2016 at 15:20 UTC | |
by hippo (Archbishop) on May 25, 2016 at 15:27 UTC | |
by RobertJ (Acolyte) on May 25, 2016 at 18:36 UTC | |
by haukex (Archbishop) on May 25, 2016 at 18:47 UTC | |
| |
|
Re: Date/Time Manipulation
by mhearse (Chaplain) on May 24, 2016 at 18:38 UTC | |
|
Re: Date/Time Manipulation
by talexb (Chancellor) on May 24, 2016 at 19:50 UTC |