Package org.orekit.time
Class GLONASSDate
- java.lang.Object
-
- org.orekit.time.GLONASSDate
-
- All Implemented Interfaces:
Serializable
,TimeStamped
public class GLONASSDate extends Object implements Serializable, TimeStamped
Container for date in GLONASS form.- Since:
- 10.0
- Author:
- Bryan Cazabonne
- See Also:
AbsoluteDate
, "GLONASS Interface Control Document v1.0, 2016", Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GLONASSDate(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteDate
getDate()
Get the date.int
getDayNumber()
Get the number of the current day in a four year interval.double
getGMST()
Get the Greenwich Mean Sidereal Time.int
getIntervalNumber()
Get the number of the current four year interval.double
getJD0()
Get the current Julian date JD0.double
getSecInDay()
Get the number of seconds since Na start.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
-
-
-
Constructor Detail
-
GLONASSDate
@DefaultDataContext public GLONASSDate(int na, int n4, double secInNa)
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(int, int, double, TimeScale)
-
GLONASSDate
public GLONASSDate(int na, int n4, double secInNa, TimeScale glonass)
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
@DefaultDataContext public GLONASSDate(AbsoluteDate date)
Build an instance from an absolute date.This method uses the
default data context
.- Parameters:
date
- absolute date to consider- See Also:
GLONASSDate(AbsoluteDate, TimeScale)
-
GLONASSDate
public GLONASSDate(AbsoluteDate date, TimeScale glonass)
Build an instance from an absolute date.- Parameters:
date
- absolute date to considerglonass
- time scale.- Since:
- 10.1
-
-
Method Detail
-
getDate
public AbsoluteDate getDate()
Description copied from interface:TimeStamped
Get the date.- Specified by:
getDate
in 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)
-
-