![]() |
PyHelios 0.1.11
|
Helios Time structure for representing time values. More...
Helios Time structure for representing time values.
Definition at line 672 of file DataTypes.py.
Inheritance diagram for pyhelios.wrappers.DataTypes.Time:
Collaboration diagram for pyhelios.wrappers.DataTypes.Time:Public Member Functions | |
| str | __repr__ (self) |
| str | __str__ (self) |
| __new__ (cls, hour=None, minute=None, second=None) | |
| Create only pass cls to prevent TypeError on Windows. | |
| __init__ (self, int hour=0, int minute=0, int second=0) | |
| Initialize Time fields with validation. | |
| from_list (self, List[int] input_list) | |
| Initialize from a list [hour, minute, second]. | |
| List[int] | to_list (self) |
| Convert to list [hour, minute, second]. | |
| bool | __eq__ (self, other) |
| Check equality with another Time object. | |
| bool | __ne__ (self, other) |
| Check inequality with another Time object. | |
Public Attributes | |
| hour = hour | |
| minute = minute | |
| second = second | |
Static Protected Attributes | |
| list | _fields_ |
| pyhelios.wrappers.DataTypes.Time.__init__ | ( | self, | |
| int | hour = 0, | ||
| int | minute = 0, | ||
| int | second = 0 ) |
Initialize Time fields with validation.
Do not call super().__init__() for Windows compatibility.
| hour | Hour (0-23) |
| minute | Minute (0-59) |
| second | Second (0-59) |
Definition at line 697 of file DataTypes.py.
| bool pyhelios.wrappers.DataTypes.Time.__eq__ | ( | self, | |
| other ) |
Check equality with another Time object.
Definition at line 731 of file DataTypes.py.
| bool pyhelios.wrappers.DataTypes.Time.__ne__ | ( | self, | |
| other ) |
Check inequality with another Time object.
Definition at line 739 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Time.__new__ | ( | cls, | |
| hour = None, | |||
| minute = None, | |||
| second = None ) |
Create only pass cls to prevent TypeError on Windows.
Definition at line 685 of file DataTypes.py.
| str pyhelios.wrappers.DataTypes.Time.__repr__ | ( | self | ) |
Definition at line 678 of file DataTypes.py.
| str pyhelios.wrappers.DataTypes.Time.__str__ | ( | self | ) |
Definition at line 681 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Time.from_list | ( | self, | |
| List[int] | input_list ) |
Initialize from a list [hour, minute, second].
Definition at line 719 of file DataTypes.py.
| List[int] pyhelios.wrappers.DataTypes.Time.to_list | ( | self | ) |
Convert to list [hour, minute, second].
Definition at line 727 of file DataTypes.py.
|
staticprotected |
Definition at line 676 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Time.hour = hour |
Definition at line 714 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Time.minute = minute |
Definition at line 715 of file DataTypes.py.
| pyhelios.wrappers.DataTypes.Time.second = second |
Definition at line 716 of file DataTypes.py.