Time
Time#
- class relsad.Time.Time(quantity: float, unit: relsad.Time.TimeUnit = TimeUnit.HOUR)[source]#
Time utility class
…
- SEC_per_MIN#
Seconds in a minute
- Type
float
- MIN_per_HOUR#
Minutes in an hour
- Type
float
- HOUR_per_DAY#
Hours in a day
- Type
float
- DAY_per_WEEK#
Days in a week
- Type
float
- WEEK_per_MONTH#
Weeks in a month
- Type
float
- MONTH_per_YEAR#
Months in a year
- Type
float
- quantity#
Time quantity, the quantity of a time unit
- Type
float
- get_years()[source]#
Returns the time quantity in year
Time.convert_unit(unit)Converts the time based on the sat time unit to the correct time
Returns the time quantity in days
Returns the time quantity in hours
Returns the time quantity in minutes
Returns the time quantity in months
Returns the time quantity in seconds
Time.get_unit_quantity(unit)Returns the time quantity of the class instance in the given unit
Returns the time quantity in weeks
Returns the time quantity in years