MCPcopy Create free account
hub / github.com/PyTables/PyTables / TimeAtom

Class TimeAtom

tables/atom.py:911–926  ·  view source on GitHub ↗

Defines an atom of time type (time kind). There are two distinct supported types of time: a 32 bit integer value and a 64 bit floating point value. Both of them reflect the number of seconds since the Unix epoch. This atom has the property of being stored using the HDF5 time datatyp

Source from the content-addressed store, hash-verified

909
910
911class TimeAtom(Atom): # type: ignore[misc]
912 """Defines an atom of time type (time kind).
913
914 There are two distinct supported types of time: a 32 bit integer value and
915 a 64 bit floating point value. Both of them reflect the number of seconds
916 since the Unix epoch. This atom has the property of being stored using the
917 HDF5 time datatypes.
918
919 """
920
921 kind: str = "time"
922 _deftype = "time32"
923 _defvalue: int | float = 0
924 __init__ = _abstract_atom_init(
925 _deftype, _defvalue
926 ) # type: ignore[assignment]
927
928
929class Time32Atom(TimeAtom): # type: ignore[misc]

Callers

nothing calls this directly

Calls 1

_abstract_atom_initFunction · 0.85

Tested by

no test coverage detected