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.
- 参数:
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.
示例
>>> import swordfish as sf >>> sf.data.Month() Month(null) >>> sf.data.Month(1) Month(0000.02M) >>> sf.data.Month(2025, 2) Month(2025.02M)