ostk.physics.time.Date¶
- class Date(self, arg0: int, arg1: int, arg2: int, /)¶
Bases:
objectDate as year, month and day.
Attributes
Get day (1 - 31).
Get month (1 - 12).
Get year (1400 - 9999).
Copy the date, replacing the provided components.
Set day.
Set month.
Set year.
Overloaded function.
- class Format(
- value,
- names=None,
- *,
- module=None,
- qualname=None,
- type=None,
- start=1,
- boundary=None,
- names=None,
Bases:
Enum- Standard = 0¶
- STK = 1¶
- GPS_epoch = <nanobind.nb_func object>¶
- J2000 = <nanobind.nb_func object>¶
- modified_julian_date_epoch = <nanobind.nb_func object>¶
- parse = <nanobind.nb_func object>¶
- replace¶
Copy the date, replacing the provided components.
- Parameters:
year (int | None, optional) -- Year (1400 - 9999). Defaults to the already existing year of this Date instance.
month (int | None, optional) -- Month (1 - 12). Defaults to the already existing month of this Date instance.
day (int | None, optional) -- Day (1 - 31). Defaults to the already existing day of this Date instance.
- Returns:
Date.
- Return type:
- to_string¶
Overloaded function.
to_string(self, arg: ostk.physics.time.Date.Format, /) -> ostk.core.type.StringGet string representation of date.
- Args:
format (Date.Format): Date format.
- Returns:
str: String representation of date.
to_string(self) -> ostk.core.type.Stringto_string(self, arg: ostk.physics.time.Date.Format, /) -> ostk.core.type.String
- unix_epoch = <nanobind.nb_func object>¶