This is a rather large patch containing what I did on
RFE ID #513262 (Consistent Date/Time Formatting).
New functions psl_dateLong, psl_dateShort,
psl_dateTime, etc., which convert timestamps to
formatted strings uniformly. All dates and times (that
I could find) are generated by these functions. The
format strings is localized in the files
Also, there are classes giving several implementations
of time zones. Using a global $_TZ array, there are
global functions tz_strftime, etc., which adjust for
the current time zone.
There are two scripts and the templates to generate
tz_bench.php: Test implementations of time zone
classes for accuracy and speed (I'm not recommending
that this be added to CVS; it's just a nice demo :-)
tz_select.php: generate and process a form to select
the user's favorite time zone.
Log in to post a comment.