All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.TimeConvert
java.lang.Object
|
+----JObserve.TimeConvert
- public class TimeConvert
- extends Object
Time conversions between systems and representations
This class consists of static functions
Time representation. Time is represented in a number of different ways.
- Numeric. Double precision float seconds since from 0h UT, 1858.11.17,
(JD 2,400,000.5).
- Time/Date String: 'yyyy.mm.dd hh:mm:ss.ssssss'
- Decimal time: String 'yyyymmddhhmmss.ssssss'
- DecimalTimeOfDay: String 'hhmmss.ssssss'
-
CenturyMJD
-
-
ConstantDays
-
-
ConstantSecondsB1900
-
-
ConstantSecondsJ2000
-
-
DAY_OFFSET
-
-
DaysIn100Years
-
-
DaysIn1Year
-
-
DaysIn400Years
-
-
DaysIn4Years
-
-
DaysPerHour
-
-
DaysPerMinute
-
-
DaysPerSecond
-
-
DaysToMonth
-
-
EndOfRange
-
-
HoursPerDay
-
-
HoursPerMinute
-
-
HoursPerSecond
-
-
JulianCenturyDays
-
-
MinutesPerDay
-
-
MinutesPerHour
-
-
MinutesPerSecond
-
-
MJD0
- Fundamental epochs.
-
MJDB
-
-
MJDJ
-
-
MJDOffset
-
-
MJDX
-
-
SecondsPerDay
-
-
SecondsPerHour
-
-
SecondsPerMinute
-
-
SiderealPerSolar
- Some constants extracted from the Astronomical Almanac and other sources.
-
SolarPerSidereal
-
-
TropicalCenturyDays
-
-
TimeConvert()
-
-
DecimalTime(double)
- Convert numeric time value to decimal time string
-
DecimalTimeOfDay(double)
- Convert numeric time value to Decimal Time of Day String
-
DecimalTimeOfDayToValue(String)
- Convert decimal time of day string to numeric time value
-
DecimalTimeToValue(String)
- Convert decimal time string to numeric time value
-
JulianToSidereal(double)
- Convert Julian to Sidereal Time (GST).
-
JulianToSiderealDay(double)
- Convert Julian to Sidereal Day.
-
SiderealToJulian(double)
- Convert Sidereal to Julian Time.
-
SiderealToJulianDay(double)
- Convert Sidereal to Julian Day.
-
TimeString(double)
- Convert numeric time value to Time String
-
TimeStringToValue(String)
- Convert Time String to numeric time value
HoursPerDay
public static final double HoursPerDay
MinutesPerDay
public static final double MinutesPerDay
SecondsPerDay
public static final double SecondsPerDay
MinutesPerHour
public static final double MinutesPerHour
SecondsPerHour
public static final double SecondsPerHour
SecondsPerMinute
public static final double SecondsPerMinute
DaysPerHour
public static final double DaysPerHour
DaysPerMinute
public static final double DaysPerMinute
DaysPerSecond
public static final double DaysPerSecond
HoursPerMinute
public static final double HoursPerMinute
HoursPerSecond
public static final double HoursPerSecond
MinutesPerSecond
public static final double MinutesPerSecond
SiderealPerSolar
public static final double SiderealPerSolar
- Some constants extracted from the Astronomical Almanac and other sources.
SolarPerSidereal
public static final double SolarPerSidereal
MJDOffset
public static final double MJDOffset
MJD0
public static final double MJD0
- Fundamental epochs.
MJDB
public static final double MJDB
MJDX
public static final double MJDX
MJDJ
public static final double MJDJ
TropicalCenturyDays
public static final double TropicalCenturyDays
JulianCenturyDays
public static final double JulianCenturyDays
DAY_OFFSET
public static final long DAY_OFFSET
CenturyMJD
public static final long CenturyMJD[]
DaysToMonth
public static final int DaysToMonth[][]
DaysIn400Years
public static final long DaysIn400Years
DaysIn100Years
public static final long DaysIn100Years
DaysIn4Years
public static final long DaysIn4Years
DaysIn1Year
public static final long DaysIn1Year
EndOfRange
public static final long EndOfRange
ConstantDays
public static final double ConstantDays
ConstantSecondsB1900
public static final double ConstantSecondsB1900
ConstantSecondsJ2000
public static final double ConstantSecondsJ2000
TimeConvert
public TimeConvert()
TimeString
public static String TimeString(double TimeValueParameter)
- Convert numeric time value to Time String
- Parameters:
-
double
- Numeric time, (seconds since 0h UT, 1858.11.17).
- Returns:
-
String
Time String ('yyyy.mm.dd hh:mm:ss.ssssss')
TimeStringToValue
public static double TimeStringToValue(String TS)
- Convert Time String to numeric time value
- Parameters:
-
String
- Time String ('yyyy.mm.dd hh:mm:ss.ssssss')
- Returns:
-
double
Numeric time, (seconds since 0h UT, 1858.11.17).
DecimalTime
public static String DecimalTime(double TimeValueParameter)
- Convert numeric time value to decimal time string
- Parameters:
-
double
- Numeric time, (seconds since 0h UT, 1858.11.17).
- Returns:
-
String
Decimal Time String ('yyyymmddhhmmss.ssssss')
DecimalTimeToValue
public static double DecimalTimeToValue(String FullDecimalTime)
- Convert decimal time string to numeric time value
- Parameters:
-
String
- Decimal Time String ('yyyymmddhhmmss.ssssss')
- Returns:
-
double
Numeric time, (seconds since 0h UT, 1858.11.17).
DecimalTimeOfDay
public static String DecimalTimeOfDay(double TimeValueParameter)
- Convert numeric time value to Decimal Time of Day String
- Parameters:
-
double
- Numeric time, (seconds since beginning of day).
- Returns:
-
String
Decimal time of day String ('hhmmss.ssssss')
DecimalTimeOfDayToValue
public static double DecimalTimeOfDayToValue(String DecimalTime)
- Convert decimal time of day string to numeric time value
- Parameters:
-
String
Decimal - Time of Day String ('hhmmss.ssssss')
- Returns:
-
double
Numeric time, (seconds since beginning of day)
JulianToSiderealDay
public static double JulianToSiderealDay(double JulianDay)
- Convert Julian to Sidereal Day.
From the explanatory supplement:
Greenwich sideral date = +0.671 + 1.00273 79093 * Julian date
GSD = 0.671 + SiderealPerSolar*(MJD+2400000.5) - 2400000.5
GSD = 0.671 + 2406571.484 - 2400000.5 + SiderealPerSolar*MJD
GSD = 6571.655 + SiderealPerSolar*MJD
- Parameters:
-
double
- Julian Day
- Returns:
-
double
Sidereal Day
SiderealToJulianDay
public static double SiderealToJulianDay(double SiderealDay)
- Convert Sidereal to Julian Day.
From the explanatory supplement:
Julian date = -0.669 + 0.99726 95664 * Greenwich sideral date
- Parameters:
-
double
- Sidereal Day
- Returns:
-
double
Julian Day
SiderealToJulian
public static double SiderealToJulian(double SiderealTime)
- Convert Sidereal to Julian Time.
- Parameters:
-
double
- Sidereal Time (GST)
- Returns:
-
double
Julian Time
JulianToSidereal
public static double JulianToSidereal(double JulianTime)
- Convert Julian to Sidereal Time (GST).
- Parameters:
-
double
- Julian Time
- Returns:
-
double
Sidereal Time (GST)
All Packages Class Hierarchy This Package Previous Next Index