diff babel/core.py @ 36:2e143f1a0003

Extended time-zone support.
author cmlenz
date Mon, 04 Jun 2007 16:03:12 +0000
parents 0505d666fa1f
children 359ec55de578
line wrap: on
line diff
--- a/babel/core.py
+++ b/babel/core.py
@@ -324,6 +324,19 @@
         :type: `dict`
         """)
 
+    def zone_aliases(self):
+        return self._data['zone_aliases']
+    zone_aliases = property(zone_aliases, doc="""\
+        Mapping of time zone aliases to their respective canonical identifer.
+        
+        >>> Locale('en').zone_aliases['UTC']
+        'Etc/GMT'
+        
+        :type: `dict`
+        :note: this doesn't really belong here, as it does not change between
+               locales
+        """)
+
     def first_week_day(self):
         return self._data['week_data']['first_day']
     first_week_day = property(first_week_day, doc="""\
Copyright (C) 2012-2017 Edgewall Software