# HG changeset patch # User cmlenz # Date 1180973643 0 # Node ID 3b23c60191e0ccc7a868b1bd158220de88ca0aa7 # Parent 2e143f1a000352e6e987a3b6e2363d2665f4b005 Add note on daylight savings time. diff --git a/doc/formatting.txt b/doc/formatting.txt --- 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/