Class SqlFunctions.DateFormatFunctionPg

java.lang.Object
org.apache.calcite.runtime.SqlFunctions.DateFormatFunctionPg
Enclosing class:
SqlFunctions

public static class SqlFunctions.DateFormatFunctionPg extends Object
State for FORMAT_DATE, FORMAT_TIMESTAMP, FORMAT_DATETIME, FORMAT_TIME, TO_CHAR functions.
  • Constructor Details

    • DateFormatFunctionPg

      public DateFormatFunctionPg(DataContext dataContext)
  • Method Details

    • toChar

      public String toChar(long timestamp, String pattern)
    • toDate

      public int toDate(String dateString, String fmtString)
    • toTimestamp

      public long toTimestamp(String timestampString, String fmtString)