diff --git a/docs/user/ppl/functions/datetime.rst b/docs/user/ppl/functions/datetime.rst index 1b6e30c070..fccfefca6b 100644 --- a/docs/user/ppl/functions/datetime.rst +++ b/docs/user/ppl/functions/datetime.rst @@ -1074,52 +1074,52 @@ Example:: +----------------------------+ -MINUTE_OF_HOUR --------------- +MINUTE_OF_DAY +------ Description >>>>>>>>>>> -Usage: minute(time) returns the minute for time, in the range 0 to 59. +Usage: minute(time) returns the amount of minutes in the day, in the range of 0 to 1439. Argument type: STRING/TIME/DATETIME/TIMESTAMP Return type: INTEGER -Synonyms: `MINUTE`_ - Example:: - os> source=people | eval `MINUTE_OF_HOUR(TIME('01:02:03'))` = MINUTE_OF_HOUR(TIME('01:02:03')) | fields `MINUTE_OF_HOUR(TIME('01:02:03'))` + os> source=people | eval `MINUTE_OF_DAY(TIME('01:02:03'))` = MINUTE_OF_DAY(TIME('01:02:03')) | fields `MINUTE_OF_DAY(TIME('01:02:03'))` fetched rows / total rows = 1/1 - +------------------------------------+ - | MINUTE_OF_HOUR(TIME('01:02:03')) | - |------------------------------------| - | 2 | - +------------------------------------+ + +-----------------------------------+ + | MINUTE_OF_DAY(TIME('01:02:03')) | + |-----------------------------------| + | 62 | + +-----------------------------------+ -MINUTE_OF_DAY ------- +MINUTE_OF_HOUR +-------------- Description >>>>>>>>>>> -Usage: minute(time) returns the amount of minutes in the day, in the range of 0 to 1439. +Usage: minute(time) returns the minute for time, in the range 0 to 59. Argument type: STRING/TIME/DATETIME/TIMESTAMP Return type: INTEGER +Synonyms: `MINUTE`_ + Example:: - os> source=people | eval `MINUTE_OF_DAY(TIME('01:02:03'))` = MINUTE_OF_DAY(TIME('01:02:03')) | fields `MINUTE_OF_DAY(TIME('01:02:03'))` + os> source=people | eval `MINUTE_OF_HOUR(TIME('01:02:03'))` = MINUTE_OF_HOUR(TIME('01:02:03')) | fields `MINUTE_OF_HOUR(TIME('01:02:03'))` fetched rows / total rows = 1/1 - +-----------------------------------+ - | MINUTE_OF_DAY(TIME('01:02:03')) | - |-----------------------------------| - | 62 | - +-----------------------------------+ + +------------------------------------+ + | MINUTE_OF_HOUR(TIME('01:02:03')) | + |------------------------------------| + | 2 | + +------------------------------------+ MONTH