Class TimeFcts


  • public abstract class TimeFcts
    extends java.lang.Object
    • Constructor Detail

      • TimeFcts

        public TimeFcts()
    • Method Detail

      • all

        public static java.util.Collection<Function> all()
      • toDate

        public static final NativeScalarFunction toDate​(TemporalType<?> type)
        Creates a function that convert a value of the specified type into a DATE.
        Parameters:
        type - the temporal type
        Returns:
        a function that convert a value of the specified type into a DATE.
      • toTimestamp

        public static final NativeScalarFunction toTimestamp​(TemporalType<?> type)
        Creates a function that convert a value of the specified type into a TIMESTAMP.
        Parameters:
        type - the temporal type
        Returns:
        a function that convert a value of the specified type into a TIMESTAMP.
      • toUnixTimestamp

        public static final NativeScalarFunction toUnixTimestamp​(TemporalType<?> type)
        Creates a function that convert a value of the specified type into an UNIX timestamp.
        Parameters:
        type - the temporal type
        Returns:
        a function that convert a value of the specified type into an UNIX timestamp.