|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgsfc.nssdc.cdf.util.EpochNative
public class EpochNative
The Epoch class is a Java wrapper to the CDF epoch handling routines. See Chapter 8 of the CDF C Reference Manual Version 2.6 for details Example:
// Get the milliseconds to Aug 5, 1990 at 5:00 double ep = Epoch.compute(1990, 8, 5, 5, 0, 0, 0); //Get the year, month, day, hour, minutes, seconds, milliseconds for ep long times[] = Epoch.breakdown(ep); for (int i=0;i
Constructor Summary EpochNative()
Method Summary static long[]
breakdown(double epoch)
Mirrors EPOCHbreakdown from the CDF library.static double
compute(long year, long month, long day, long hour, long minute, long second, long msec)
Mirrors computeEPOCH from the CDF library.static java.lang.String
encode(double epoch)
Mirrors encodeEPOCH from the CDF library.static java.lang.String
encode1(double epoch)
Mirrors encodeEPOCH1 from the CDF library.static java.lang.String
encode2(double epoch)
Mirrors encodeEPOCH2 from the CDF library.static java.lang.String
encode3(double epoch)
Mirrors encodeEPOCH3 from the CDF library.static java.lang.String
encode4(double epoch)
Mirrors encodeEPOCH4 from the CDF library.static java.lang.String
encodex(double epoch, java.lang.String format)
Mirrors encodeEPOCHx from the CDF library.static double
parse(java.lang.String sEpoch)
Mirrors parseEPOCH from CDF library.static double
parse1(java.lang.String sEpoch)
Mirrors parseEPOCH from CDF library.static double
parse2(java.lang.String sEpoch)
Mirrors parseEPOCH from CDF library.static double
parse3(java.lang.String sEpoch)
Mirrors parseEPOCH from CDF library.static double
parse4(java.lang.String sEpoch)
Mirrors parseEPOCH from CDF library.
Methods inherited from class java.lang.Object equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail EpochNative
public EpochNative()
Method Detail compute
public static double compute(long year, long month, long day, long hour, long minute, long second, long msec)
- Mirrors computeEPOCH from the CDF library. See Section 8.1 of the CDF C Reference Manual Version 2.6 for details
breakdown
public static long[] breakdown(double epoch)
- Mirrors EPOCHbreakdown from the CDF library. See Section 8.2 of the CDF C Reference Manual Version 2.6 for details
encode
public static java.lang.String encode(double epoch)
- Mirrors encodeEPOCH from the CDF library. See Section 8.3 of the CDF C Reference Manual Version 2.6 for details
encode1
public static java.lang.String encode1(double epoch)
- Mirrors encodeEPOCH1 from the CDF library. See Section 8.4 of the CDF C Reference Manual Version 2.6 for details
encode2
public static java.lang.String encode2(double epoch)
- Mirrors encodeEPOCH2 from the CDF library. See Section 8.5 of the CDF C Reference Manual Version 2.6 for details
encode3
public static java.lang.String encode3(double epoch)
- Mirrors encodeEPOCH3 from the CDF library. See Section 8.6 of the CDF C Reference Manual Version 2.6 for details
encode4
public static java.lang.String encode4(double epoch)
- Mirrors encodeEPOCH4 from the CDF library. See Section 8.6 of the CDF C Reference Manual Version 2.6 for details
encodex
public static java.lang.String encodex(double epoch, java.lang.String format)
- Mirrors encodeEPOCHx from the CDF library. See Section 8.7 of the CDF C Reference Manual Version 2.6 for details
parse
public static double parse(java.lang.String sEpoch)
- Mirrors parseEPOCH from CDF library. See Section 8.8 of the CDF C Reference Manual Version 2.6 for details
parse1
public static double parse1(java.lang.String sEpoch)
- Mirrors parseEPOCH from CDF library. See Section 8.9 of the CDF C Reference Manual Version 2.6 for details
parse2
public static double parse2(java.lang.String sEpoch)
- Mirrors parseEPOCH from CDF library. See Section 8.10 of the CDF C Reference Manual Version 2.6 for details
parse3
public static double parse3(java.lang.String sEpoch)
- Mirrors parseEPOCH from CDF library. See Section 8.11 of the CDF C Reference Manual Version 2.6 for details
parse4
public static double parse4(java.lang.String sEpoch)
- Mirrors parseEPOCH from CDF library. See Section 8.11 of the CDF C Reference Manual Version 2.6 for details
Overview Package Class Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD