Enum DateTimeUtils.TimeUnit

java.lang.Object
java.lang.Enum<DateTimeUtils.TimeUnit>
org.apache.flink.table.utils.DateTimeUtils.TimeUnit
All Implemented Interfaces:
Serializable, Comparable<DateTimeUtils.TimeUnit>
Enclosing class:
DateTimeUtils

@Internal public static enum DateTimeUtils.TimeUnit extends Enum<DateTimeUtils.TimeUnit>
Enumeration of time units used to construct an interval.

Only YEAR, MONTH, DAY, HOUR, MINUTE, SECOND can be the unit of a SQL interval.

The others (QUARTER, WEEK, MILLISECOND, DOW, DOY, EPOCH, DECADE, CENTURY, MILLENNIUM, MICROSECOND, NANOSECOND, ISODOW and ISOYEAR) are convenient to use internally, when converting to and from UNIX timestamps. And also may be arguments to the EXTRACT, TIMESTAMPADD and TIMESTAMPDIFF functions.