Month#

class swordfish._swordfishcpp.Month(data: int)#
class swordfish._swordfishcpp.Month(year: int, month: int)
class swordfish._swordfishcpp.Month

Represents a Swordfish Month object, initialized in one of three ways: with no arguments, with a Python int value, or two ints indicating year and month.

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

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

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

Examples

>>> import swordfish as sf
>>> sf.data.Month()
Month(null)
>>> sf.data.Month(1)
Month(0000.02M)
>>> sf.data.Month(2025, 2)
Month(2025.02M)
NULL_VALUE: Month#