Mercurial > babel > mirror
diff doc/formatting.txt @ 31:f3049ca45daa trunk
Raise error on unsupported locales. Closes #5.
author | cmlenz |
---|---|
date | Mon, 04 Jun 2007 11:29:55 +0000 |
parents | 72bf45adb926 |
children | ac0957a8fd8b |
line wrap: on
line diff
--- a/doc/formatting.txt +++ b/doc/formatting.txt @@ -192,15 +192,17 @@ +----------+--------+--------------------------------------------------------+ -Time-zone Support +Time-Zone Support ----------------- -Many of the verbose default time formats include the time-zone, but the -time-zone is not by default available for the Python ``datetime`` and ``time`` -objects. The standard library includes only the abstract ``tzinfo`` class, -which you need appropriate implementations for to actually use in your +Many of the verbose time formats include the time-zone, but time-zone +information is not by default available for the Python ``datetime`` and +``time`` objects. The standard library includes only the abstract ``tzinfo`` +class, which you need appropriate implementations for to actually use in your application. Babel includes a ``tzinfo`` implementation for UTC (Universal -Time). For actual time-zones, it is strongly recommended that you use the +Time). + +For real time-zone support, it is strongly recommended that you use the third-party package `pytz`_, which includes the definitions of practically all of the time-zones used on the world, as well as important functions for reliably converting from UTC to local time, and vice versa::