Class EpochOffsets

java.lang.Object
com.ibm.icu.dev.tool.timescale.EpochOffsets

public class EpochOffsets extends Object
This tool calculates the numeric values of the epoch offsets used in UniversalTimeScale.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     
    private static int[][]
     
    private static final long
     
    private static final long
     
    private static final long
     
    private static final long
     
    private static final long
     
    private static final long
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    The default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    The main() method calculates the epoch offsets used by the UniversalTimeScale class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • EpochOffsets

      public EpochOffsets()
      The default constructor.
  • Method Details

    • main

      public static void main(String[] args)
      The main() method calculates the epoch offsets used by the UniversalTimeScale class. The calculations are done using an ICU Calendar 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.