Mercurial > babel > mirror
diff doc/formatting.txt @ 35:0df10113d5c2 trunk
Add note on daylight savings time.
author | cmlenz |
---|---|
date | Mon, 04 Jun 2007 16:14:03 +0000 |
parents | 464fbcefedde |
children | 0739bc8e7210 |
line wrap: on
line diff
--- a/doc/formatting.txt +++ b/doc/formatting.txt @@ -225,6 +225,12 @@ >>> format_datetime(dt, 'H:mm zzzz', tzinfo=british, locale='en_US') u'16:30 British Summer Time' +Here, the given UTC time is adjusted to the "Europe/London" time-zone, and +daylight savings time is taken into account. Daylight savings time is also +applied to ``format_time``, but because the actual date is unknown in that +case, the current day is assumed to determine whether DST or standard time +should be used. + .. _`pytz`: http://pytz.sourceforge.net/