Re: mktime() Algorithm

From: Date: Wed, 06 Feb 2002 21:28:23 +0000
Subject: Re: mktime() Algorithm
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83766@lists.php.net to get a copy of this message
On Wed, 2002-02-06 at 11:28, David A Dickson wrote: > I need to create a function in another programming language that takes the > same input as the php mktime() function and produces the exact same output > as the php mktime() function. Does anybody out there know what the > algorithm is? > > -- > David A Dickson > david.dickson@mail.mcgill.ca Sure: it starts around line 80 on ext/standard/datetime.c in the source tree: http://cvs.php.net/co.php/php4/ext/standard/datetime.c?r=1.82 Hope this helps, Torben -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#83766) next »