Class GenerateCTimeScaleData


  • public class GenerateCTimeScaleData
    extends java.lang.Object
    This class prints out the initializers needed to initialize the time scale data in the C version of UniversalTimeScale. It just calls getTimeScaleValue() for all fields and prints the initializers. Because some C compilers can't compile a literal constant for the minimum and / or maximum values of an int64_t, this code will print U_INT64_MIN or U_INT64_MAX for these values.
    See Also:
    UniversalTimeScale
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long days  
      private static long hours  
      private static long microseconds  
      private static long milliseconds  
      private static long minutes  
      private static long seconds  
      private static long ticks  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      This method prints the C initializers for the time scale data.
      private static java.lang.String minMaxFilter​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenerateCTimeScaleData

        public GenerateCTimeScaleData()
        The default constructor.
    • Method Detail

      • minMaxFilter

        private static java.lang.String minMaxFilter​(long value)
      • main

        public static void main​(java.lang.String[] args)
        This method prints the C initializers for the time scale data.
        Parameters:
        args - - the command line arguments
        See Also:
        UniversalTimeScale