Package com.ibm.icu.dev.tool.timescale
Class EpochOffsets
- java.lang.Object
-
- com.ibm.icu.dev.tool.timescale.EpochOffsets
-
public class EpochOffsets extends java.lang.Object
This tool calculates the numeric values of the epoch offsets used in UniversalTimeScale.- See Also:
UniversalTimeScale
-
-
Field Summary
Fields Modifier and Type Field Description private static long
days
private static int[][]
epochDates
private static long
hours
private static long
javaDays
private static long
microseconds
private static long
milliseconds
private static long
minutes
private static long
seconds
private static long
ticks
-
Constructor Summary
Constructors Constructor Description EpochOffsets()
The default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Themain()
method calculates the epoch offsets used by theUniversalTimeScale
class.
-
-
-
Field Detail
-
ticks
private static final long ticks
- See Also:
- Constant Field Values
-
microseconds
private static final long microseconds
- See Also:
- Constant Field Values
-
milliseconds
private static final long milliseconds
- See Also:
- Constant Field Values
-
seconds
private static final long seconds
- See Also:
- Constant Field Values
-
minutes
private static final long minutes
- See Also:
- Constant Field Values
-
hours
private static final long hours
- See Also:
- Constant Field Values
-
days
private static final long days
- See Also:
- Constant Field Values
-
javaDays
private static final long javaDays
- See Also:
- Constant Field Values
-
epochDates
private static int[][] epochDates
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Themain()
method calculates the epoch offsets used by theUniversalTimeScale
class. The calculations are done using an ICUCalendar
object. The first step is to calculate the Universal Time Scale's epoch date. Then the epoch offsets are calculated by calculating each epoch date, subtracting the universal epoch date from it, and converting that value to ticks.- Parameters:
args
- - the command line arguments.
-
-