note 38589 deleted from function.date by didou

From: Date: Mon, 29 Dec 2003 09:02:27 +0000
Subject: note 38589 deleted from function.date by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62625@lists.php.net to get a copy of this message
Note Submitter: me at domain adaptivetime dot compodre ---- i wanted a fast way to add/subtract from a timestamp and this is what i got. date('YmdHis',date('U',$mytimestamp+1571971344+3*60*60*24)) This will add 3 days (3*60*60*24 seconds) I had to add 1571971344 seconds to get it to return the correct date/time. This may be a "feature" or fixed already(I'm using a old version). Still good code to have! Enjoy, Gravis

« previous php.notes (#62625) next »