![]() |
0.1.8
|
Helios Date structure for representing date values. More...
Helios Date structure for representing date values.
Definition at line 649 of file DataTypes.py.
Public Member Functions | |
str | __repr__ (self) |
str | __str__ (self) |
__init__ (self, int year=2023, int month=1, int day=1) | |
Initialize a Date object. | |
from_list (self, List[int] input_list) | |
Initialize from a list [year, month, day]. | |
List[int] | to_list (self) |
Convert to list [year, month, day]. | |
bool | __eq__ (self, other) |
Check equality with another Date object. | |
bool | __ne__ (self, other) |
Check inequality with another Date object. | |
Public Attributes | |
year = year | |
month = month | |
day = day | |
Static Protected Attributes | |
list | _fields_ |
pyhelios.wrappers.DataTypes.Date.__init__ | ( | self, | |
int | year = 2023, | ||
int | month = 1, | ||
int | day = 1 ) |
Initialize a Date object.
year | Year (1900-3000) |
month | Month (1-12) |
day | Day (1-31) |
Definition at line 669 of file DataTypes.py.
bool pyhelios.wrappers.DataTypes.Date.__eq__ | ( | self, | |
other ) |
Check equality with another Date object.
Definition at line 702 of file DataTypes.py.
bool pyhelios.wrappers.DataTypes.Date.__ne__ | ( | self, | |
other ) |
Check inequality with another Date object.
Definition at line 710 of file DataTypes.py.
str pyhelios.wrappers.DataTypes.Date.__repr__ | ( | self | ) |
Definition at line 655 of file DataTypes.py.
str pyhelios.wrappers.DataTypes.Date.__str__ | ( | self | ) |
Definition at line 658 of file DataTypes.py.
pyhelios.wrappers.DataTypes.Date.from_list | ( | self, | |
List[int] | input_list ) |
Initialize from a list [year, month, day].
Definition at line 690 of file DataTypes.py.
List[int] pyhelios.wrappers.DataTypes.Date.to_list | ( | self | ) |
Convert to list [year, month, day].
Definition at line 698 of file DataTypes.py.
|
staticprotected |
Definition at line 653 of file DataTypes.py.
pyhelios.wrappers.DataTypes.Date.day = day |
Definition at line 687 of file DataTypes.py.
pyhelios.wrappers.DataTypes.Date.month = month |
Definition at line 686 of file DataTypes.py.
pyhelios.wrappers.DataTypes.Date.year = year |
Definition at line 685 of file DataTypes.py.