note 129175 added to class.dateinterval

From: Date: Thu, 18 Jan 2024 15:56:00 +0000
Subject: note 129175 added to class.dateinterval
Groups: php.notes 
Request: Send a blank email to php-notes+get-221129@lists.php.net to get a copy of this message
More simple example i use to add or subtract. <?php $Datetime = new Datetime('NOW', new DateTimeZone('America/Bahia')); $Datetime->add(DateInterval::createFromDateString('2 day')); echo $Datetime->format("Y-m-d H:i:s"); ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 191.35.190.38) ---- Manual Page -- https://php.net/manual/en/class.dateinterval.php Edit -- https://main.php.net/note/edit/129175 Del: integrated -- https://main.php.net/note/delete/129175/integrated Del: useless -- https://main.php.net/note/delete/129175/useless Del: bad code -- https://main.php.net/note/delete/129175/bad+code Del: spam -- https://main.php.net/note/delete/129175/spam Del: non-english -- https://main.php.net/note/delete/129175/non-english Del: in docs -- https://main.php.net/note/delete/129175/in+docs Del: other reasons-- https://main.php.net/note/delete/129175 Reject -- https://main.php.net/note/reject/129175 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221129) next »