MCPcopy
hub / github.com/mne-tools/mne-python / fromtimestamp

Method fromtimestamp

mne/tests/test_annotations.py:66–69  ·  view source on GitHub ↗
(cls, timestamp, tzinfo=None)

Source from the content-addressed store, hash-verified

64class _windows_datetime(datetime):
65 @classmethod
66 def fromtimestamp(cls, timestamp, tzinfo=None):
67 if timestamp < 0:
68 raise OSError("[Errno 22] Invalid argument")
69 return datetime.fromtimestamp(timestamp, tzinfo)
70
71
72@pytest.fixture(scope="function")

Callers 6

_stamp_to_dtFunction · 0.80
test_invalid_meas_dateFunction · 0.80
_parse_nedf_headerFunction · 0.80
test_handle_meas_dateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected