ostk.physics.time.Instant

class Instant

Bases: object

Point in time.

Methods

Attributes

GPS_epoch

J2000

date_time

get_date_time

Get date-time.

get_julian_date

Get Julian date.

get_leap_second_count

Get leap second count.

get_modified_julian_date

Get Modified Julian date.

is_near

Check if instant is near another instant

is_post_epoch

Check if the instant is post-epoch (J2000).

julian_date

modified_julian_date

now

parse

to_string

Convert to string.

GPS_epoch = <nanobind.nb_func object>
J2000 = <nanobind.nb_func object>
__add__
date_time = <nanobind.nb_func object>
get_date_time

Get date-time.

Returns:

Date-time.

Return type:

DateTime

get_julian_date

Get Julian date.

Returns:

Julian date.

Return type:

float

get_leap_second_count

Get leap second count.

Returns:

Leap second count.

Return type:

int

get_modified_julian_date

Get Modified Julian date.

Returns:

Modified Julian date.

Return type:

float

is_near

Check if instant is near another instant

Returns:

True if near

Return type:

bool

is_post_epoch

Check if the instant is post-epoch (J2000).

Returns:

True if post-epoch.

Return type:

bool

julian_date = <nanobind.nb_func object>
modified_julian_date = <nanobind.nb_func object>
now = <nanobind.nb_func object>
parse = <nanobind.nb_func object>
to_string

Convert to string.

Parameters:
  • scale (Time.Scale) -- Time scale.

  • date_time_format (DateTime.Format) -- Date-time format.

Returns:

String representation.

Return type:

str