note 128672 added to function.date
| From: | MikhailStreltsov at main dot php dot net | Date: | Thu, 06 Jul 2023 11:22:02 +0000 |
| Subject: | note 128672 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220633@lists.php.net to get a copy of this message | ||
Perfomance of "date("Y-m-d")" will be 2 000 000 per soconds
Perfomance of "date("Y-m-d H:i:s")" will be 1 000 000
But it can't show microseconds of current time. For this reason i recommend use (new
\DateTime())->format("Y-m-d H:i:s:v") - perfomance will be over 700 000
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.168 (proxied: 83.220.237.14)
----
Manual Page -- https://php.net/manual/en/function.date.php
Edit -- https://main.php.net/note/edit/128672
Del: integrated -- https://main.php.net/note/delete/128672/integrated
Del: useless -- https://main.php.net/note/delete/128672/useless
Del: bad code -- https://main.php.net/note/delete/128672/bad+code
Del: spam -- https://main.php.net/note/delete/128672/spam
Del: non-english -- https://main.php.net/note/delete/128672/non-english
Del: in docs -- https://main.php.net/note/delete/128672/in+docs
Del: other reasons-- https://main.php.net/note/delete/128672
Reject -- https://main.php.net/note/reject/128672
Search -- https://main.php.net/manage/user-notes.php