summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorniemeyer <>2005-02-24 17:23:24 +0000
committerniemeyer <>2005-02-24 17:23:24 +0000
commite2b6346687c19f305b9c4a2d57826bf1bab6b275 (patch)
tree568560548a3e2781aadc23096e104abe3a186a7b /README
parentdebf3cd82a0aa85949c84eefa13eab5fd5be3949 (diff)
downloaddateutil-e2b6346687c19f305b9c4a2d57826bf1bab6b275.tar.gz
- More improvements in tzwin.
- New NEWS file. - Updated README with tzwin information.
Diffstat (limited to 'README')
-rw-r--r--README47
1 files changed, 46 insertions, 1 deletions
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