Posted by Gordon Burditt on 11/04/90 11:41
>I am trying to find the difference between 2 dates. The problem that I
>am having is that all
>routines in the PHP Manual and all of the scripts I have seen on the
>Internet only allow a date as
>old as 1970. I am trying to find the age of a person in months so 1970
>is not far back enough. Does
>anyone know of a script where 1970 is not a restriction?
PHP suffers from the limitations of a UNIX time_t. I recommend
using MySQL date functions where the allowed range includes the
years 1 thru 9999, which is good enough for most practical uses.
Gordon L. Burditt
[Back to original message]
|