Re: days between two timestamps

From: Date: Wed, 05 Jun 2002 15:04:19 +0000
Subject: Re: days between two timestamps
Groups: php.general 
Request: Send a blank email to php-general+get-100718@lists.php.net to get a copy of this message
Use substr() to extract the appropriate information, then format it and compare it. 20020603 is obviously June 3, 2002 and 20020605 is obviously June 5, 2002 which means there was 1 day (plus x hours) between the two. Hope to help! Martin >>> "Tyler Longren" <tyler@captainjack.com> 06/05/02 11:01AM >>> Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way to get the number of days between the two dates? thanks, tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#100718) next »