note 6345 deleted from ref.datetime by victor

From: Date: Mon, 09 Dec 2002 18:47:47 +0000
Subject: note 6345 deleted from ref.datetime by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40603@lists.php.net to get a copy of this message
To get the number of days between two dates Get the UNIX timestamp for the two days, using time for the current timestamp and mktime to generate others. Since timestamps are in seconds from Epoch time you can simply subtract the two and Multiply by 60 * 60 * 24 to get the number of days.

« previous php.notes (#40603) next »