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,
)

Bases: object

Date-time.

Overloaded function.

  1. __init__(self, date: ostk.physics.time.Date, time: ostk.physics.time.Time) -> None

    Constructor.

    Args:

    date (Date): A date time (Time): A time

  2. __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) -> None

    Constructor.

    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

GPS_epoch

J2000

get_date

Get date.

get_julian_date

Get Julian date.

get_modified_julian_date

Get Modified Julian date.

get_time

Get time.

julian_date

modified_julian_date

modified_julian_date_epoch

parse

to_string

unix_epoch

class Format(
value,
names=None,
*,
module=None,
qualname=None,
type=None,
start=1,
boundary=None,
)

Bases: Enum

Standard = 0
ISO8601 = 1
STK = 2
GPS_epoch = <nanobind.nb_func object>
J2000 = <nanobind.nb_func object>
get_date

Get date.

Returns:

Date.

Return type:

Date

get_julian_date

Get Julian date.

Returns:

Julian date.

Return type:

float

get_modified_julian_date

Get Modified Julian date.

Returns:

Modified Julian date.

Return type:

float

get_time

Get time.

Returns:

Time.

Return type:

Time

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>