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 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.