|The stupid question is the question not asked|
DateTime::Format::Strptime Parsing Seems to have a Problem?by ozboomer (Friar)
|on Mar 26, 2019 at 01:34 UTC||Need Help??|
ozboomer has asked for the wisdom of the Perl Monks concerning the following question:
I'm finding something of an inconsistent behaviour when using DateTime::Format::Strptime.
The program as shown below illustrates the problem... but in short, the parsing of an 'hh:mm:ss p' format on a 12-hour clock doesn't seem to work with a 'PM' included in the string. Using a 24-hour clock format (and no 'PM') seems to work Ok... but my data isn't presented in that format.
An example program:-
I have updated the modules to the latest versions via CPAN... but it doesn't make any difference. Otherwise, I'm talking about ActiveState Perl v5.16.3 Build 1603, running under Windows 10 64-bit.
Any clues on what's wrong here... with what I'm trying to do OR with the ways the functions are working?
Thanks a heap for any forthcoming suggestions.