in reply to Date/Time Manipulation
Looking for a simple (hopefully) way of subtracting one hour from date - time in a file.
Simple, you say?
perl -pe 's/ (\d\d)/sprintf(" %2.2i",$1-1)/e;'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Date/Time Manipulation
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 | |
by RobertJ (Acolyte) on May 25, 2016 at 19:22 UTC |