note 119746 added to function.date
| From: | aalaap at gmail dot com | Date: | Tue, 16 Aug 2016 11:41:44 +0000 |
| Subject: | note 119746 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206304@lists.php.net to get a copy of this message | ||
If you need to programatically get a list of all the supported date format identifiers, you can use
this simple function:
<?php
function getDateFormat() {
return str_split('dDjlNSwzWFmMntLoYyaABgGhHisueIOPTZcrU');
}
?>
PHP doesn't have a built-in identifier listing function, but it has one for listing timezone
names.
----
Server IP: 72.52.91.14
Probable Submitter: 123.252.163.90
----
Manual Page -- http://php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/119746
Del: integrated -- https://master.php.net/note/delete/119746/integrated
Del: useless -- https://master.php.net/note/delete/119746/useless
Del: bad code -- https://master.php.net/note/delete/119746/bad+code
Del: spam -- https://master.php.net/note/delete/119746/spam
Del: non-english -- https://master.php.net/note/delete/119746/non-english
Del: in docs -- https://master.php.net/note/delete/119746/in+docs
Del: other reasons-- https://master.php.net/note/delete/119746
Reject -- https://master.php.net/note/reject/119746
Search -- https://master.php.net/manage/user-notes.php