note 127729 added to datetime.settime
| From: | divinity76+spam at gmail dot com | Date: | Mon, 17 Oct 2022 08:30:15 +0000 |
| Subject: | note 127729 added to datetime.settime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219680@lists.php.net to get a copy of this message | ||
warning, at least in version 8.1.13-dev, doing $dt->modify("now") does nothing at all.
doing $dt->setTimestamp(time()); is the best alternative i found for now, but it is limited to
second-precision
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.161 (proxied: 2a02:2121:2ce:62d6:bd94:974d:dacd:9698)
----
Manual Page -- https://php.net/manual/en/datetime.settime.php
Edit -- https://main.php.net/note/edit/127729
Del: integrated -- https://main.php.net/note/delete/127729/integrated
Del: useless -- https://main.php.net/note/delete/127729/useless
Del: bad code -- https://main.php.net/note/delete/127729/bad+code
Del: spam -- https://main.php.net/note/delete/127729/spam
Del: non-english -- https://main.php.net/note/delete/127729/non-english
Del: in docs -- https://main.php.net/note/delete/127729/in+docs
Del: other reasons-- https://main.php.net/note/delete/127729
Reject -- https://main.php.net/note/reject/127729
Search -- https://main.php.net/manage/user-notes.php