blob: 48e816123e5b07d817a8ee008f701a1e4c7cf013 [file] [log] [blame]
PREHOOK: query: DESCRIBE FUNCTION day
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION day
POSTHOOK: type: DESCFUNCTION
day(param) - Returns the day of the month of date/timestamp, or day component of interval
PREHOOK: query: DESCRIBE FUNCTION EXTENDED day
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION EXTENDED day
POSTHOOK: type: DESCFUNCTION
day(param) - Returns the day of the month of date/timestamp, or day component of interval
Synonyms: dayofmonth
param can be one of:
1. A string in the format of 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd'.
2. A date value
3. A timestamp value
4. A day-time interval valueExample:
> SELECT day('2009-07-30') FROM src LIMIT 1;
30
Function class:org.apache.hadoop.hive.ql.udf.UDFDayOfMonth
Function type:BUILTIN