Date#
- class swordfish._swordfishcpp.Date(data: int)#
- class swordfish._swordfishcpp.Date(year: int, month: int, day: int)
- class swordfish._swordfishcpp.Date
Represents a Swordfish Date object, initialized in one of three ways: with no arguments, with a Python int value, or with three ints indicating year, month, and day.
- Parameters:
data (int, optional) – A Python int used to initialize the Date object.
year (int, optional) – The year component of the Date object.
month (int, optional) – The month component of the Date object.
day (int, optional) – The day component of the Date object.
Examples
>>> import swordfish as sf >>> sf.data.Date() Date(null) >>> sf.data.Date(1) Date(1970.01.02) >>> sf.data.Date(2000, 1, 1) Date(2000.01.01)