php-general | 2001092
Date: 09/30/01
- Next message: Tyler Longren: "[PHP] scrolling news [sort of OT]"
- Previous message: Armando Cerna: "Re: [PHP] Running a Shell Script in PHP HELP!"
- In reply to: yang: "[PHP] how many day between the two time format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If both times are UNIX timestamps
$seconds_per_day = 60 * 60 * 24;
$dif = $today - $last_day;
$days = (int)($dif / $seconds_per_day);
-- Justin Garrett"Yang" <jakry <email protected>> wrote in message news:20010930192559.12059.qmail <email protected> > i want to check about how many day between the two time format > like > $last_day=time format; > $today=time(); > $between_day=?????($today-$last_day); > echo $between_day is the between day... > > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Tyler Longren: "[PHP] scrolling news [sort of OT]"
- Previous message: Armando Cerna: "Re: [PHP] Running a Shell Script in PHP HELP!"
- In reply to: yang: "[PHP] how many day between the two time format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

