note 116265 deleted from class.dateinterval by cmb

From: Date: Tue, 14 Jun 2016 10:18:49 +0000
Subject: note 116265 deleted from class.dateinterval by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205716@lists.php.net to get a copy of this message
Note Submitter: Michael ---- To increase a time, use the add method. For example: $thirty_minutes_from_now = new DateTime(); $thirty_minutes_from_now->sub(new DateInterval('PT30M')); To decrease a time, use the diff method. For example: $thirty_minutes_ago = new DateTime(); $thirty_minutes_ago->sub(new DateInterval('PT30M'));

« previous php.notes (#205716) next »