PyHelios 0.1.11
Loading...
Searching...
No Matches
pyhelios.wrappers.DataTypes.Time Class Reference

Helios Time structure for representing time values. More...

Detailed Description

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_
 

Constructor & Destructor Documentation

◆ __init__()

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.

Parameters
hourHour (0-23)
minuteMinute (0-59)
secondSecond (0-59)

Definition at line 697 of file DataTypes.py.

Member Function Documentation

◆ __eq__()

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

Check equality with another Time object.

Definition at line 731 of file DataTypes.py.

◆ __ne__()

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

Check inequality with another Time object.

Definition at line 739 of file DataTypes.py.

◆ __new__()

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.

◆ __repr__()

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

Definition at line 678 of file DataTypes.py.

◆ __str__()

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

Definition at line 681 of file DataTypes.py.

◆ from_list()

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.

◆ to_list()

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

Convert to list [hour, minute, second].

Definition at line 727 of file DataTypes.py.

Member Data Documentation

◆ _fields_

list pyhelios.wrappers.DataTypes.Time._fields_
staticprotected

Definition at line 676 of file DataTypes.py.

◆ hour

pyhelios.wrappers.DataTypes.Time.hour = hour

Definition at line 714 of file DataTypes.py.

◆ minute

pyhelios.wrappers.DataTypes.Time.minute = minute

Definition at line 715 of file DataTypes.py.

◆ second

pyhelios.wrappers.DataTypes.Time.second = second

Definition at line 716 of file DataTypes.py.


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