Class DateTimeStringUtils

java.lang.Object
org.apache.calcite.util.DateTimeStringUtils

public class DateTimeStringUtils extends Object
Utility methods to manipulate String representation of DateTime values.
See Also:
  • DateTimeUtils
  • Field Details

    • ISO_DATETIME_FORMAT

      public static final String ISO_DATETIME_FORMAT
      The SimpleDateFormat string for ISO timestamps, "yyyy-MM-dd'T'HH:mm:ss'Z'".
      See Also:
    • ISO_DATETIME_FRACTIONAL_SECOND_FORMAT

      public static final String ISO_DATETIME_FRACTIONAL_SECOND_FORMAT
      The SimpleDateFormat string for ISO timestamps with precisions, "yyyy-MM-dd'T'HH:mm:ss .SSS'Z'"
      See Also:
  • Method Details

    • getDateFormatter

      public static SimpleDateFormat getDateFormatter(String format)
      Create a SimpleDateFormat with format string with default time zone UTC.
    • getDateFormatter

      public static SimpleDateFormat getDateFormatter(String format, TimeZone timeZone)
      Create a SimpleDateFormat with format string and time zone.