ostk.physics.time.Instant¶
- class Instant¶
Bases:
pybind11_object
Point in time.
Methods
Get the GPS epoch instant.
Get J2000 instant.
Create an instant from a date-time.
Get date-time.
Get Julian date.
Get leap second count.
Get Modified Julian date.
Check if the instant is defined.
Check if instant is near another instant
Check if the instant is post-epoch (J2000).
Create an instant from a Julian date.
Create an instant from a Modified Julian date.
Get current instant.
Create an instant from a string representation.
Convert to string.
Create an undefined instant.
- static GPS_epoch() ostk.physics.time.Instant ¶
Get the GPS epoch instant.
- Returns:
GPS epoch instant.
- Return type:
- static J2000() ostk.physics.time.Instant ¶
Get J2000 instant.
- Returns:
J2000 instant.
- Return type:
- __add__(
- self: ostk.physics.time.Instant,
- arg0: ostk.physics.time.Duration,
- static date_time(
- arg0: ostk.physics.time.DateTime,
- arg1: ostk.physics.time.Scale,
Create an instant from a date-time.
- get_date_time(
- self: ostk.physics.time.Instant,
- arg0: ostk.physics.time.Scale,
Get date-time.
- Returns:
Date-time.
- Return type:
- get_julian_date(
- self: ostk.physics.time.Instant,
- arg0: ostk.physics.time.Scale,
Get Julian date.
- Returns:
Julian date.
- Return type:
- get_leap_second_count(self: ostk.physics.time.Instant) int ¶
Get leap second count.
- Returns:
Leap second count.
- Return type:
- get_modified_julian_date(
- self: ostk.physics.time.Instant,
- arg0: ostk.physics.time.Scale,
Get Modified Julian date.
- Returns:
Modified Julian date.
- Return type:
- is_defined(self: ostk.physics.time.Instant) bool ¶
Check if the instant is defined.
- Returns:
True if defined.
- Return type:
- is_near(
- self: ostk.physics.time.Instant,
- arg0: ostk.physics.time.Instant,
- arg1: ostk.physics.time.Duration,
- arg0: ostk.physics.time.Instant,
Check if instant is near another instant
- Returns:
True if near
- Return type:
- is_post_epoch(self: ostk.physics.time.Instant) bool ¶
Check if the instant is post-epoch (J2000).
- Returns:
True if post-epoch.
- Return type:
- static julian_date(
- arg0: ostk.core.type.Real,
- arg1: ostk.physics.time.Scale,
Create an instant from a Julian date.
- static modified_julian_date(
- arg0: ostk.core.type.Real,
- arg1: ostk.physics.time.Scale,
Create an instant from a Modified Julian date.
- static now() ostk.physics.time.Instant ¶
Get current instant.
- Returns:
Current instant.
- Return type:
- static parse(
- string: ostk.core.type.String,
- scale: ostk.physics.time.Scale,
- date_time_format: ostk.physics.time.DateTime.Format = Format.Standard,
- scale: ostk.physics.time.Scale,
Create an instant from a string representation.
- Parameters:
string (str) -- String representation.
scale (Time.Scale) -- Time scale.
date_time_format (DateTime.Format) -- Date-time format.
- Returns:
Instant.
- Return type:
- to_string(
- self: ostk.physics.time.Instant,
- scale: ostk.physics.time.Scale = Scale.UTC,
- date_time_format: ostk.physics.time.DateTime.Format = Format.Standard,
- scale: ostk.physics.time.Scale = Scale.UTC,
Convert to string.
- Parameters:
scale (Time.Scale) -- Time scale.
date_time_format (DateTime.Format) -- Date-time format.
- Returns:
String representation.
- Return type:
- static undefined() ostk.physics.time.Instant ¶
Create an undefined instant.
- Returns:
Undefined instant.
- Return type: