mirror of
https://github.com/python/cpython.git
synced 2025-07-13 22:35:18 +00:00
* aifc.py: don't die on invalid MARK chunk
* calendar.py: remove stuff now built in time; some cleanup and generalization in the calendar printing * cmd.py: use __init__. * tzparse.py: This module is no longer necessary -- use builtin time instead!
This commit is contained in:
parent
52fc1f607e
commit
9b3bc71598
4 changed files with 104 additions and 133 deletions
|
@ -48,7 +48,7 @@ def isdst(time):
|
|||
import calendar
|
||||
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
|
||||
tzparams
|
||||
year, month, days, hours, mins, secs, yday, wday = \
|
||||
year, month, days, hours, mins, secs, yday, wday, isdst = \
|
||||
calendar.gmtime(time - delta*3600)
|
||||
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue