MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / tz_convert

Function tz_convert

lib/matplotlib/tests/test_dates.py:1050–1051  ·  view source on GitHub ↗
(dt_list, tzinfo)

Source from the content-addressed store, hash-verified

1048
1049 # Define a tz_convert function that converts a list to a new timezone.
1050 def tz_convert(dt_list, tzinfo):
1051 return [d.astimezone(tzinfo) for d in dt_list]
1052
1053 _test_date2num_dst(date_range, tz_convert)
1054

Callers 1

_test_date2num_dstFunction · 0.85

Calls 1

astimezoneMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…