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

Function _pytime_from_micros

python/pyarrow/tests/test_pandas.py:3372–3379  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

3370
3371
3372def _pytime_from_micros(val):
3373 microseconds = val % 1000000
3374 val //= 1000000
3375 seconds = val % 60
3376 val //= 60
3377 minutes = val % 60
3378 hours = val // 60
3379 return time(hours, minutes, seconds, microseconds)
3380
3381
3382def _pytime_to_micros(pytime):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected