note 128639 added to function.date
| From: | Fonstw at main dot php dot net | Date: | Mon, 26 Jun 2023 12:41:58 +0000 |
| Subject: | note 128639 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220599@lists.php.net to get a copy of this message | ||
I want to reply to amasingh03101988 at gmail dot com's note, on why this "isn't
handled" by PHP:
"Fred" is completely valid date time format, you can view them on https://www.php.net/manual/en/datetime.format.php
Allow me to explain what this format means and why it produces "MayFri, 05 May 2023 07:03:16
+0200Europe/Amsterdam05"
<?php
# F = A full textual representation of a month, such as January or March (in this case
"May")
# r = RFC 2822/RFC 5322 formatted date ("Fri, 05 May 2023 07:03:16 +0200")
# e = Timezone identifier ("Europe/Amsterdam")
# d = Day of the month, 2 digits with leading zeros ("05")
?>
I hope this helps!
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 92.68.89.245)
----
Manual Page -- https://php.net/manual/en/function.date.php
Edit -- https://main.php.net/note/edit/128639
Del: integrated -- https://main.php.net/note/delete/128639/integrated
Del: useless -- https://main.php.net/note/delete/128639/useless
Del: bad code -- https://main.php.net/note/delete/128639/bad+code
Del: spam -- https://main.php.net/note/delete/128639/spam
Del: non-english -- https://main.php.net/note/delete/128639/non-english
Del: in docs -- https://main.php.net/note/delete/128639/in+docs
Del: other reasons-- https://main.php.net/note/delete/128639
Reject -- https://main.php.net/note/reject/128639
Search -- https://main.php.net/manage/user-notes.php