PyDocs

Nav

Data Types

tzinfo.utcoffset

datetime

method of tzinfo
  • tzinfo.utcoffset(dt)
datetime -> timedelta showing offset from UTC, negative values indicating West of UTC
Changed in 3.7
  • 3.7: The UTC offset is not restricted to a whole number of minutes.
0 Examples
No examples for datetime/tzinfo.utcoffset.
See Also
No see-alsos for datetime/tzinfo.utcoffset
0 Notes
No notes for tzinfo.utcoffset