@@ -1221,7 +1221,7 @@ Instance methods:
12211221
12221222
12231223 >>> from datetime import datetime
1224- >>> datetime.now().isoformat(timespec = ' minutes' )
1224+ >>> datetime.now().isoformat(timespec = ' minutes' ) # doctest: +SKIP
12251225 '2002-12-25T00:00'
12261226 >>> dt = datetime(2015 , 1 , 1 , 12 , 30 , 59 , 0 )
12271227 >>> dt.isoformat(timespec = ' microseconds' )
@@ -1781,9 +1781,11 @@ There is one more :class:`tzinfo` method that a subclass may wish to override:
17811781 else:
17821782 return dt
17831783
1784- Example :class: `tzinfo ` classes:
1784+ In the following :download: `tzinfo_examples.py
1785+ <../includes/tzinfo_examples.py>` file there are some examples of
1786+ :class: `tzinfo ` classes:
17851787
1786- .. literalinclude :: ../includes/tzinfo-examples .py
1788+ .. literalinclude :: ../includes/tzinfo_examples .py
17871789
17881790Note that there are unavoidable subtleties twice per year in a :class: `tzinfo `
17891791subclass accounting for both standard and daylight time, at the DST transition
@@ -1804,6 +1806,8 @@ When DST starts (the "start" line), the local wall clock leaps from 1:59 to
18041806``astimezone(Eastern) `` won't deliver a result with ``hour == 2 `` on the day DST
18051807begins. For example, at the Spring forward transition of 2016, we get
18061808
1809+ >>> from datetime import datetime, timezone
1810+ >>> from tzinfo_examples import HOUR , Eastern
18071811 >>> u0 = datetime(2016 , 3 , 13 , 5 , tzinfo = timezone.utc)
18081812 >>> for i in range (4 ):
18091813 ... u = u0 + i* HOUR
0 commit comments