Package org.orekit.time
Class GLONASSDate
java.lang.Object
org.orekit.time.GLONASSDate
- All Implemented Interfaces:
TimeStamped
Container for date in GLONASS form.
- Since:
- 10.0
- Author:
- Bryan Cazabonne
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGLONASSDate(int na, int n4, double secInNa) Build an instance corresponding to a GLONASS date.GLONASSDate(int na, int n4, double secInNa, TimeScale glonass) Build an instance corresponding to a GLONASS date.GLONASSDate(AbsoluteDate date) Build an instance from an absolute date.GLONASSDate(AbsoluteDate date, TimeScale glonass) Build an instance from an absolute date. -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Get the date.intGet the number of the current day in a four year interval.doublegetGMST()Get the Greenwich Mean Sidereal Time.intGet the number of the current four year interval.doublegetJD0()Get the current Julian date JD0.doubleGet the number of seconds since Na start.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
Constructor Details
-
GLONASSDate
Build an instance corresponding to a GLONASS date.This method uses the
default data context.- Parameters:
na- the number of the current day in a four year intervaln4- the number of the current four year intervalsecInNa- the number of seconds since na start- See Also:
-
GLONASSDate
Build an instance corresponding to a GLONASS date.- Parameters:
na- the number of the current day in a four year intervaln4- the number of the current four year intervalsecInNa- the number of seconds since na startglonass- time scale.- Since:
- 10.1
-
GLONASSDate
Build an instance from an absolute date.This method uses the
default data context.- Parameters:
date- absolute date to consider- See Also:
-
GLONASSDate
Build an instance from an absolute date.- Parameters:
date- absolute date to considerglonass- time scale.- Since:
- 10.1
-
-
Method Details
-
getDate
Description copied from interface:TimeStampedGet the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
getSecInDay
public double getSecInDay()Get the number of seconds since Na start.- Returns:
- number of seconds since Na start
-
getDayNumber
public int getDayNumber()Get the number of the current day in a four year interval.- Returns:
- the number of the current day in a four year interval
-
getIntervalNumber
public int getIntervalNumber()Get the number of the current four year interval.- Returns:
- the number of the current four year interval
-
getJD0
public double getJD0()Get the current Julian date JD0.- Returns:
- the current date JD0
-
getGMST
public double getGMST()Get the Greenwich Mean Sidereal Time.- Returns:
- the Greenwich Mean Sidereal Time (rad)
-