diff options
author | niemeyer <> | 2005-02-24 17:23:24 +0000 |
---|---|---|
committer | niemeyer <> | 2005-02-24 17:23:24 +0000 |
commit | e2b6346687c19f305b9c4a2d57826bf1bab6b275 (patch) | |
tree | 568560548a3e2781aadc23096e104abe3a186a7b /README | |
parent | debf3cd82a0aa85949c84eefa13eab5fd5be3949 (diff) | |
download | dateutil-e2b6346687c19f305b9c4a2d57826bf1bab6b275.tar.gz |
- More improvements in tzwin.
- New NEWS file.
- Updated README with tzwin information.
Diffstat (limited to 'README')
-rw-r--r-- | README | 47 |
1 files changed, 46 insertions, 1 deletions
@@ -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 |