ostk.physics.time.DateTime¶
- class DateTime(self, date: ostk.physics.time.Date, time: ostk.physics.time.Time)¶
- class DateTime(
- self,
- year: int,
- month: int,
- day: int,
- hour: int = 0,
- minute: int = 0,
- second: int = 0,
- millisecond: int = 0,
- microsecond: int = 0,
- nanosecond: int = 0,
- year: int,
Bases:
objectDate-time.
Overloaded function.
__init__(self, date: ostk.physics.time.Date, time: ostk.physics.time.Time) -> NoneConstructor.
- Args:
date (Date): A date time (Time): A time
__init__(self, year: int, month: int, day: int, hour: int = 0, minute: int = 0, second: int = 0, millisecond: int = 0, microsecond: int = 0, nanosecond: int = 0) -> NoneConstructor.
- Args:
year (int): Year month (int): Month day (int): Day hour (int): Hour minute (int): Minute second (int): Second millisecond (int): Millisecond microsecond (int): Microsecond nanosecond (int): Nanosecond
Attributes
Get date.
Get Julian date.
Get Modified Julian date.
Get time.
- class Format(
- value,
- names=None,
- *,
- module=None,
- qualname=None,
- type=None,
- start=1,
- boundary=None,
- names=None,
Bases:
Enum- Standard = 0¶
- ISO8601 = 1¶
- STK = 2¶
- GPS_epoch = <nanobind.nb_func object>¶
- J2000 = <nanobind.nb_func object>¶
- get_modified_julian_date¶
Get Modified Julian date.
- Returns:
Modified Julian date.
- Return type:
- julian_date = <nanobind.nb_func object>¶
- modified_julian_date = <nanobind.nb_func object>¶
- modified_julian_date_epoch = <nanobind.nb_func object>¶
- parse = <nanobind.nb_func object>¶
- to_string¶
- unix_epoch = <nanobind.nb_func object>¶