new Date extenstion
| From: | Pierre-Alain Joye | Date: | Sun, 16 Feb 2003 15:38:43 +0000 |
| Subject: | new Date extenstion | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-94275@lists.php.net to get a copy of this message | ||
Hello,
I made a new extension to work with dates, you may find infos&sources
here:
Docs: http://www.pearfr.org/php_date/docs/
Sources: http://www.pearfr.org/php_date/sources/
This is a alpha release, a first shot. I still have to create a full set
of tests script.
The idea is to provide a fullfeatured date/time standart extension with
php5.
A non documented function is get_isoweek() which returns the ISO week
number. But the weeknumber is a thing we have to discuss, because there
are tons of way to represent it. Actually the week #1 is the week where
fit 4th of january.
For all date_new_xxx functions, an optionnal arg can be set to define
the 1st day week, default is monday.
Todo:
- strftime()
- add/clean warnings (overflow, invalid dates,...)
- add times functions
This part is real pain if we want to DST times, localtime and so on.
- add time_span datatype, which represents a time interval in days,
hours, seconds, and related functions
- add a true crossplatform localisations, which does not depend of the
target platform. That will make our life easier to provide date
localisations in any cases.
Usefull but not really needed:
- add additionnals functions for specials days and official hollydays
any comments, ideas, feedback ?
pierre