note 129732 added to function.strptime
| From: | Anonymous | Date: | Sat, 31 Aug 2024 13:35:40 +0000 |
| Subject: | note 129732 added to function.strptime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221509@lists.php.net to get a copy of this message | ||
Best replacement for this function seems to be "date_parse". Note that the returned array
keys change from things like "tm_year" to simpler names like "year". Fwiw,
"date_parse_from_format" did not look like a good replacement to me---even though I
updated my format string ("i" is used for minute instead of "M"), it returned
errors for a straightforward format ("%Y-%m-%d %H:%i:%S").
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.84.18 (proxied: 173.48.205.131)
----
Manual Page -- https://php.net/manual/en/function.strptime.php
Edit -- https://main.php.net/note/edit/129732
Del: integrated -- https://main.php.net/note/delete/129732/integrated
Del: useless -- https://main.php.net/note/delete/129732/useless
Del: bad code -- https://main.php.net/note/delete/129732/bad+code
Del: spam -- https://main.php.net/note/delete/129732/spam
Del: non-english -- https://main.php.net/note/delete/129732/non-english
Del: in docs -- https://main.php.net/note/delete/129732/in+docs
Del: other reasons-- https://main.php.net/note/delete/129732
Reject -- https://main.php.net/note/reject/129732
Search -- https://main.php.net/manage/user-notes.php