MCPcopy Create free account
hub / github.com/apache/arrow / test_offset_timezone

Function test_offset_timezone

python/pyarrow/tests/test_compute.py:2737–2741  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2735
2736
2737def test_offset_timezone():
2738 arr = pc.strptime(["2012-12-12T12:12:12"], format="%Y-%m-%dT%H:%M:%S", unit="s")
2739 zoned_arr = arr.cast(pa.timestamp("s", tz="+05:30"))
2740 assert pc.hour(zoned_arr)[0].as_py() == 17
2741 assert pc.minute(zoned_arr)[0].as_py() == 42
2742
2743
2744@pytest.mark.parametrize("unit", ["s", "ms", "us", "ns"])

Callers

nothing calls this directly

Calls 4

as_pyMethod · 0.80
hourMethod · 0.80
minuteMethod · 0.80
castMethod · 0.45

Tested by

no test coverage detected