note 52005 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Mon, 18 Apr 2005 15:47:18 +0000 |
| Subject: | note 52005 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88171@lists.php.net to get a copy of this message | ||
Note Submitter: ShootingStar
----
Could someone please explain the reason why the date functions in php, in particular date(), revolve
around unix timestamps which are only useful for dates between 1970 and 2038. This seems a somewhat
archaic system that is impractical for many solutions e.g. family mappings and trees where dates can
go back centuries (my own family history dates back to the 12th century!)
Can anyone tell me if there are any functions or libraries available for some date functions that
are not dependant in unix timestamps? I would like a function to format a date based on the input of
three parameters:
(date, format1, format2)
where date is the date to be formatted, format 1 is the format of the supplied date and format2 is
the format required.
Ok so simple date formats like dd/mm/yyyy are simple to code myself but I would like a reliable
function that can handle the full array of date formats including long day and month names etc.