AW: [PHP-WIN] Count days between old date() and now()

From: Date: Wed, 23 Apr 2003 18:38:44 +0000
Subject: AW: [PHP-WIN] Count days between old date() and now()
Groups: php.windows 
Request: Send a blank email to php-windows+get-19582@lists.php.net to get a copy of this message
Hi, you can use http://www.php.net/manual/en/function.mktime.php to make a timestamp of both dates. This is good for leap years and stuff. When it comes to the second, it will depend on the correct OS locale knowledge of DST and leap seconds and stuff. -- Sven > -----Ursprüngliche Nachricht----- > Von: Per Lundberg [SMTP:per@nobolt.com] > Gesendet am: Mittwoch, 23. April 2003 17:07 > An: Svensson, B.A.T. (HKG) > Cc: Php Win32 list > Betreff: RE: [PHP-WIN] Count days between old date() and now() > > On Wed, 2003-04-23 at 15:25, Svensson, B.A.T. (HKG) wrote: > > you can also use: http://www.php.net/manual/en/function.microtime.php > > > > and divide the difference by 3600*24 to get number of days. > > Sorry to be a pain, but how about leap years? :-) > > -- > Best regards, > > Per Lundberg / Capio ApS > Phone: +46-18-4186040 > Fax: +46-18-4186049 > Web: http://www.nobolt.com > << Datei: signature.asc >>

« previous php.windows (#19582) next »