Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: DateTime::Format::Strptime Parsing Seems to have a Problem?

by tangent (Vicar)
on Mar 26, 2019 at 03:09 UTC ( #1231679=note: print w/replies, xml ) Need Help??


in reply to DateTime::Format::Strptime Parsing Seems to have a Problem?

You need to use %I for the 12-hour clock, not %H
pattern => '%d/%m/%Y %I:%M:%S %p'
You can also use %r for the whole time to avoid confusion
pattern => '%d/%m/%Y %r'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2022-01-28 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?