Skip to content

Commit

Permalink
changed documentation to be in alphabetical order
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Wells <[email protected]>
  • Loading branch information
matthewryanwells committed Jul 7, 2023
1 parent 7c9dab2 commit 3c8a765
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions docs/user/ppl/functions/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c8a765

Please sign in to comment.