Class GenerateCTimeScaleData

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

public class GenerateCTimeScaleData extends 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:
  • Field Details

  • Constructor Details

    • GenerateCTimeScaleData

      public GenerateCTimeScaleData()
      The default constructor.
  • Method Details

    • minMaxFilter

      private static String minMaxFilter(long value)
    • main

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