diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2011-11-01 09:32:05 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2011-11-01 09:32:05 (GMT) |
commit | 4bfe03a42e4cc7e0c0504db520c6d68b302d67bd (patch) | |
tree | d8e2de42575fa77f3d749e3a7f3f7fa7af578414 /Doc | |
parent | 316f573d9c96d9c15bea658a9e27aae6ebdf72e5 (diff) | |
download | cpython-4bfe03a42e4cc7e0c0504db520c6d68b302d67bd.zip cpython-4bfe03a42e4cc7e0c0504db520c6d68b302d67bd.tar.gz cpython-4bfe03a42e4cc7e0c0504db520c6d68b302d67bd.tar.bz2 |
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/datetime.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index c663332..1f4cfba 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1422,13 +1422,13 @@ methods. Exactly which methods are needed depends on the uses made of aware Most implementations of :meth:`dst` will probably look like one of these two:: - def dst(self): + def dst(self, dt): # a fixed-offset class: doesn't account for DST return timedelta(0) or :: - def dst(self): + def dst(self, dt): # Code to set dston and dstoff to the time zone's DST # transition times based on the input dt.year, and expressed # in standard local time. Then |