Mike Schilli wrote:
Looks like the %p in the Strptime snippet below doesn't match the "PM"
in the date string. Anyone knows why?
To work out the 'why', check $p->errmsg:
Your am/pm value (PM) does not match your hour (01)
So your am/pm value of 'PM' doesn't match the hour 01 as 01 is in the
morning. To hand it to you on a platter, you're using the %H specifier
in your pattern which is the 24-hour specifier rather than %I which is
the 12 hour specifier.
Cheers!
Rick Measham
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content
filtering.
http://www.mailguard.com.au