Re[2]: [PHP] Counting back 90 days...

From: Date: Mon, 05 Jan 2004 14:38:13 +0000
Subject: Re[2]: [PHP] Counting back 90 days...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-173752@lists.php.net to get a copy of this message
Hello Paul, Monday, January 5, 2004, 2:26:16 PM, you wrote: PC> For example, strftime("%+",0) returns "Wed Dec 31 19:00:00 EST 1969" in PC> my timezone, and strftime("%+",-1) returns a blank. Yet, doing a PC> strtotime("1969-12-31 23:59:59 GMT") will get you a -1, and the date() PC> function appears to support negative timestamps ... which means you PC> can't skimp on your testing if you decide to go this route. ;-) True, but given his original requirement "I wanna remove 90 days from todays date" that shouldn't be a problem for over three decades :) -- Best regards, Richard mailto:rich@launchcode.co.uk

« previous php.general (#173752) next »