• Tim Peters's avatar
    Implemented a Wiki suggestion: · 855fe88b
    Tim Peters yazdı
    {timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None)
    instead of an int (or None).
    
    tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None).
    
    Curiously, this was much easier to do in the C implementation than in the
    Python implementation (which lives in the Zope3 code tree) -- the C code
    already had lots of hair to extract C ints from offset objects, and used
    C ints internally.
    855fe88b
test_datetime.py 86.4 KB