ostk.physics.time.Time¶
- class Time(self, arg0: int, arg1: int, arg2: int, arg3: int, arg4: int, arg5: int, /)¶
- class Time(self, arg0: int, arg1: int, arg2: int, /)
Bases:
objectTime as hour, minute, second, millisecond, microsecond and nanosecond.
Overloaded function.
__init__(self, arg0: int, arg1: int, arg2: int, arg3: int, arg4: int, arg5: int, /) -> NoneConstructor.
- Args:
an_hour (int): An hour count (0 - 23). a_minute (int): A minute count (0 - 59). a_second (int): A second count (0 - 60). a_millisecond (int): A millisecond count (0 - 999). a_microsecond (int): A microsecond count (0 - 999). a_nanosecond (int): A nanosecond count (0 - 999).
__init__(self, arg0: int, arg1: int, arg2: int, /) -> NoneConstructor.
- Args:
an_hour (int): An hour count (0 - 23). a_minute (int): A minute count (0 - 59). a_second (int): A second count (0 - 60).
Attributes
Get floating seconds.
Get hour count.
Get microsecond count.
Get millisecond count.
Get minute count.
Get nanosecond count.
Get second count.
Get total floating hours.
Get total floating seconds.
Copy the time, replacing the provided components.
Set hour count.
Set microsecond count.
Set millisecond count.
Set minute count.
Set nanosecond count.
Set second count.
Overloaded function.
- class Format(
- value,
- names=None,
- *,
- module=None,
- qualname=None,
- type=None,
- start=1,
- boundary=None,
- names=None,
Bases:
Enum- Standard = 0¶
- ISO8601 = 1¶
- get_total_floating_hours¶
Get total floating hours.
- Returns:
Total floating hours.
- Return type:
- get_total_floating_seconds¶
Get total floating seconds.
- Returns:
Total floating seconds.
- Return type:
- hours = <nanobind.nb_func object>¶
- midnight = <nanobind.nb_func object>¶
- noon = <nanobind.nb_func object>¶
- parse = <nanobind.nb_func object>¶
- replace¶
Copy the time, replacing the provided components.
- Parameters:
hour (int | None, optional) -- Hour count (0 - 23). Defaults to the already existing hour of this Time instance.
minute (int | None, optional) -- Minute count (0 - 59). Defaults to the already existing minute of this Time instance.
second (int | None, optional) -- Second count (0 - 60). Defaults to the already existing second of this Time instance.
millisecond (int | None, optional) -- Millisecond count (0 - 999). Defaults to the already existing millisecond of this Time instance.
microsecond (int | None, optional) -- Microsecond count (0 - 999). Defaults to the already existing microsecond of this Time instance.
nanosecond (int | None, optional) -- Nanosecond count (0 - 999). Defaults to the already existing nanosecond of this Time instance.
- Returns:
Time.
- Return type:
- seconds = <nanobind.nb_func object>¶
- set_microsecond¶
Set microsecond count.
- Parameters:
a_microsecond (int) -- A microsecond count (0 - 999).
- set_millisecond¶
Set millisecond count.
- Parameters:
a_millisecond (int) -- A millisecond count (0 - 999).
- set_nanosecond¶
Set nanosecond count.
- Parameters:
a_nanosecond (int) -- A nanosecond count (0 - 999).
- to_string¶
Overloaded function.
to_string(self, arg: ostk.physics.time.Time.Format, /) -> ostk.core.type.StringGet string representation of time.
- Returns:
str: String representation of time.
to_string(self) -> ostk.core.type.StringGet string representation of time.
- Returns:
str: String representation of time.
to_string(self, arg: ostk.physics.time.Time.Format, /) -> ostk.core.type.StringGet string representation of time.
- Args:
aFormat (Time.Format): Time format.
- Returns:
str: String representation of time.