Getting Started
User Guide
Visualization
Reference
bins
bin
histogram
x
y
transform_coords
Tutorials
About
Constructs a zero dimensional Variable with a dtype of datetime64 that contains scipp’s epoch.
Variable
Currently, the epoch of datetimes in scipp is the Unix epoch 1970-01-01T00:00:00.
unit (Union[Unit, str]) – Unit of the resulting Variable.
Union
Unit
str
See also
scipp.datetime, scipp.datetimes
scipp.datetime
scipp.datetimes
Details
‘Dates and Times’ section in Data Types
Examples
>>> sc.epoch(unit='s') <scipp.Variable> () datetime64 [s] [1970-01-01T00:00:00]