From: Christopher Lenz Date: Mon, 4 Jun 2007 16:14:03 +0000 (+0000) Subject: Add note on daylight savings time. X-Git-Tag: 1.0~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8207138e8ba40479715f6f0e1bc26dfef1da217;p=thirdparty%2Fbabel.git Add note on daylight savings time. --- diff --git a/doc/formatting.txt b/doc/formatting.txt index 6bc48bff..4d104187 100644 --- a/doc/formatting.txt +++ b/doc/formatting.txt @@ -225,6 +225,12 @@ unchanged:: >>> 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/