note 128836 added to function.time
| From: | davewalley54 at gmail dot com | Date: | Mon, 28 Aug 2023 18:28:00 +0000 |
| Subject: | note 128836 added to function.time | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220798@lists.php.net to get a copy of this message | ||
The advice to "avoid the pitfalls that come with just Unix timestamps" is questionable.
Better is to learn why timestamps have the back-end advantage of simple mathematical operations,
with conversion to human-readable form handled first-thing, and conversion back handled just before
presentation to humans in the GUI.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 2605:8d80:4c0:eb92:f600:8e6c:d5b9:9b2d)
----
Manual Page -- https://php.net/manual/en/function.time.php
Edit -- https://main.php.net/note/edit/128836
Del: integrated -- https://main.php.net/note/delete/128836/integrated
Del: useless -- https://main.php.net/note/delete/128836/useless
Del: bad code -- https://main.php.net/note/delete/128836/bad+code
Del: spam -- https://main.php.net/note/delete/128836/spam
Del: non-english -- https://main.php.net/note/delete/128836/non-english
Del: in docs -- https://main.php.net/note/delete/128836/in+docs
Del: other reasons-- https://main.php.net/note/delete/128836
Reject -- https://main.php.net/note/reject/128836
Search -- https://main.php.net/manage/user-notes.php