Timestamp#
- class swordfish._swordfishcpp.Timestamp(data: int)#
- class swordfish._swordfishcpp.Timestamp(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int)
- class swordfish._swordfishcpp.Timestamp
Represents a Swordfish Timestamp object.
- Parameters:
data (int, optional) – A Python int used to initialize the Timestamp object.
year (int, optional) – The year component of the Timestamp object.
month (int, optional) – The month component of the Timestamp object.
day (int, optional) – The day component of the Timestamp object.
hour (int, optional) – The hour component of the Timestamp object.
minute (int, optional) – The minute component of the Timestamp object.
second (int, optional) – The second component of the Timestamp object.
millisecond (int, optional) – The millisecond component of the Timestamp object.
Examples
>>> import swordfish as sf >>> sf.data.Timestamp() Timestamp(null) >>> sf.data.Timestamp(0) Timestamp(1970.01.01T00:00:00.000) >>> sf.data.Timestamp(2025, 1, 1, 12, 0, 20, 0) Timestamp(2025.01.01T12:00:20.000)