DateHour#

class swordfish._swordfishcpp.DateHour(data: int)#
class swordfish._swordfishcpp.DateHour(year: int, month: int, day: int, hour: int)
class swordfish._swordfishcpp.DateHour

Represents a Swordfish DateHour object.

Parameters:
  • data (int, optional) – A Python int used to initialize the DateHour object.

  • year (int, optional) – The year component of the DateHour object.

  • month (int, optional) – The month component of the DateHour object.

  • day (int, optional) – The day component of the DateHour object.

  • hour (int, optional) – The hour component of the DateHour object.

Examples

>>> import swordfish as sf
>>> sf.data.DateHour()
DateHour(null)
>>> sf.data.DateHour(1000)
DateHour(1970.02.11T16)
>>> sf.data.DateHour(2025,2,2,9)
DateHour(2025.02.02T09)
NULL_VALUE: DateHour#