0.1.8
Loading...
Searching...
No Matches
pyhelios.wrappers.DataTypes.Date Class Reference

Helios Date structure for representing date values. More...

Detailed Description

Helios Date structure for representing date values.

Definition at line 649 of file DataTypes.py.

+ Inheritance diagram for pyhelios.wrappers.DataTypes.Date:
+ Collaboration diagram for pyhelios.wrappers.DataTypes.Date:

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_
 

Constructor & Destructor Documentation

◆ __init__()

pyhelios.wrappers.DataTypes.Date.__init__ ( self,
int year = 2023,
int month = 1,
int day = 1 )

Initialize a Date object.

Parameters
yearYear (1900-3000)
monthMonth (1-12)
dayDay (1-31)

Definition at line 669 of file DataTypes.py.

Member Function Documentation

◆ __eq__()

bool pyhelios.wrappers.DataTypes.Date.__eq__ ( self,
other )

Check equality with another Date object.

Definition at line 702 of file DataTypes.py.

◆ __ne__()

bool pyhelios.wrappers.DataTypes.Date.__ne__ ( self,
other )

Check inequality with another Date object.

Definition at line 710 of file DataTypes.py.

◆ __repr__()

str pyhelios.wrappers.DataTypes.Date.__repr__ ( self)

Definition at line 655 of file DataTypes.py.

◆ __str__()

str pyhelios.wrappers.DataTypes.Date.__str__ ( self)

Definition at line 658 of file DataTypes.py.

◆ from_list()

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.

◆ to_list()

List[int] pyhelios.wrappers.DataTypes.Date.to_list ( self)

Convert to list [year, month, day].

Definition at line 698 of file DataTypes.py.

Member Data Documentation

◆ _fields_

list pyhelios.wrappers.DataTypes.Date._fields_
staticprotected

Definition at line 653 of file DataTypes.py.

◆ day

pyhelios.wrappers.DataTypes.Date.day = day

Definition at line 687 of file DataTypes.py.

◆ month

pyhelios.wrappers.DataTypes.Date.month = month

Definition at line 686 of file DataTypes.py.

◆ year

pyhelios.wrappers.DataTypes.Date.year = year

Definition at line 685 of file DataTypes.py.


The documentation for this class was generated from the following file: