in reply to Need help in extracting timestamp from the line in a file
If your dates are very consistently formatted like that, then you can probably just create a regex to extract all the parts and reformat it. It's a decent intro regex problem.
If your dates are more complicated (e..g Third tuesday of the month) then Date::Manip is probably a good starting point. Sometimes Date::Manip doesn't have quite what you need a little pre-processing of your target data using a regex before you feed it to Date::Manip. It will probably also handle your dates as formatted, maybe with a little preprocessing.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Need help in extracting timestamp from the line in a file
by jayu_rao (Sexton) on Mar 09, 2015 at 16:24 UTC | |
by choroba (Cardinal) on Mar 09, 2015 at 16:39 UTC |