in reply to Re^3: Date/Time Manipulation
in thread Date/Time Manipulation
OK I have been looking at that statement
$stuff =~ s/ (\d\d)/sprintf(" %2.2i",$1-1)/e;I have poured over my Perl O'Reilly book and am still clueless. Since the input lines look like this
2016-05-16 10:51:07 random text
How does the expression pick out the hours versus any other two digits?
Then what does the sprintf do? I'm willing to learn but would need a starting point.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Date/Time Manipulation
by haukex (Archbishop) on May 25, 2016 at 18:47 UTC | |
by RobertJ (Acolyte) on May 25, 2016 at 19:22 UTC |