From e2b6346687c19f305b9c4a2d57826bf1bab6b275 Mon Sep 17 00:00:00 2001 From: niemeyer <> Date: Thu, 24 Feb 2005 17:23:24 +0000 Subject: - More improvements in tzwin. - New NEWS file. - Updated README with tzwin information. --- README | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 98e5c04..a834331 100644 --- a/README +++ b/README @@ -27,7 +27,11 @@ the standard '''datetime''' module, available in Python 2.3+. files (/etc/localtime, /usr/share/zoneinfo, etc), TZ environment string (in all known formats), iCalendar format files, given ranges (with help from relative deltas), - local machine timezone, fixed offset timezone, and UTC timezone. + local machine timezone, fixed offset timezone, UTC timezone, + and Windows registry-based time zones. + + * Internal up-to-date world timezone information based on + Olson's database. * Computing of Easter Sunday dates for any given year, using Western, Orthodox or Julian algorithms; @@ -1855,6 +1859,47 @@ Let's check the daylight ranges, as usual: 'EST' }}} +==== tzwin type ==== +This type offers access to internal registry-based Windows timezones. +The constuctor prototype is: +{{{ +tzwin(name) +}}} + +Where {{{name}}} is the timezone name. There's a static {{{tzwin.list()}}} +method to check the available names, + +==== tzwin methods ==== + + tzwin.display():: + This method returns the timezone extended name. + + tzwin.list():: + This static method lists all available timezone names. + +==== tzwin examples ==== +{{{ +>>> tz = tzwin("E. South America Standard Time") +}}} + +==== tzwinlocal type ==== +This type offers access to internal registry-based Windows timezones. +The constructor accepts no parameters, so the prototype is: +{{{ +tzwinlocal() +}}} + +==== tzwinlocal methods ==== + + tzwinlocal.display():: + This method returns the timezone extended name, and returns + {{{None}}} if one is not available. + +==== tzwinlocal examples ==== +{{{ +>>> tz = tzwinlocal() +}}} + ==== gettz() function ==== This function is a helper that will try its best to get the right timezone for your environment, or for the given string. The prototype -- cgit v1.2.1