@@ -42,7 +42,7 @@ Fork me on [GitHub](https://github.com/pynickle/python-cheatsheet-redefined).
4242
4343** Binary Data** : [ `` codecs `` ] ( #codecs ) , [ `` struct `` ] ( #struct )
4444
45- ** Data Type** : [ `` datetime `` ] ( #datetime ) , [ `` calendar `` ] ( #calendar ) , [ `` collections `` ] ( #collections ) ,[ `` copy `` ] ( #copy ) , [ `` pprint `` ] ( #pprint ) , [ `` enum `` ] ( #enum ) , [ `` bisect `` ] ( #bisect ) , [ `` heapq `` ] ( #heapq ) , [ `` weakref `` ] ( #weakref )
45+ ** Data Type** : [ `` datetime `` ] ( #datetime ) , [ `` zoneinfo `` ] ( #zoneinfo ) , [ `` calendar `` ] ( #calendar ) , [ `` collections `` ] ( #collections ) ,[ `` copy `` ] ( #copy ) , [ `` pprint `` ] ( #pprint ) , [ `` enum `` ] ( #enum ) , [ `` bisect `` ] ( #bisect ) , [ `` heapq `` ] ( #heapq ) , [ `` weakref `` ] ( #weakref )
4646
4747** Mathematical Modules** : [ `` math `` ] ( #math ) , [ `` cmath `` ] ( #cmath ) , [ `` random `` ] ( #random ) ,
4848[ `` fractions `` ] ( #fractions ) , [ `` decimal `` ] ( #decimal ) , [ `` statistics `` ] ( #statistics )
@@ -387,6 +387,23 @@ datetime.IsoCalendarDate(year=2019, week=29, weekday=7)
387387' 2019 21 19, 00:00:00'
388388```
389389
390+ ## zoneinfo
391+
392+ #### zoneinfo
393+
394+ ``` python
395+ >> > from zoneinfo import ZoneInfo
396+ >> > from datetime import datetime
397+ >> >
398+ >> > time = datetime(2025 , 10 , 26 , 17 , 23 , tzinfo = ZoneInfo(" Asia/Shanghai" ))
399+ >> > time
400+ datetime.datetime(2025 , 10 , 26 , 17 , 23 , tzinfo = zoneinfo.ZoneInfo(key = ' Asia/Shanghai' ))
401+ >> > time.tzname()
402+ ' CST'
403+ >> > time.astimezone(ZoneInfo(" America/Los_Angeles" ))
404+ datetime.datetime(2025 , 10 , 26 , 2 , 23 , tzinfo = zoneinfo.ZoneInfo(key = ' America/Los_Angeles' ))
405+ ```
406+
390407## calendar
391408
392409#### isleap, firstweekday, month
0 commit comments