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
| 909 | |
| 910 | |
| 911 | class 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 | |
| 929 | class Time32Atom(TimeAtom): # type: ignore[misc] |
nothing calls this directly
no test coverage detected