MCPcopy
hub / github.com/pandas-dev/pandas / _make_timestamp

Method _make_timestamp

pandas/tests/tseries/offsets/test_dst.py:157–162  ·  view source on GitHub ↗
(self, string, hrs_offset, tz)

Source from the content-addressed store, hash-verified

155 )
156
157 def _make_timestamp(self, string, hrs_offset, tz):
158 if hrs_offset >= 0:
159 offset_string = f"{hrs_offset:02d}00"
160 else:
161 offset_string = f"-{(hrs_offset * -1):02}00"
162 return Timestamp(string + offset_string).tz_convert(tz)
163
164 def test_springforward_plural(self, performance_warning):
165 # test moving from standard to daylight savings

Callers 3

Calls 1

tz_convertMethod · 0.45

Tested by

no test coverage detected