Class EpochOffsets


  • public class EpochOffsets
    extends java.lang.Object
    This tool calculates the numeric values of the epoch offsets used in UniversalTimeScale.
    See Also:
    UniversalTimeScale
    • 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)
      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
    • Constructor Detail

      • EpochOffsets

        public EpochOffsets()
        The default constructor.
    • Method Detail

      • main

        public static void main​(java.lang.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.