forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
6.1 KiB
6.1 KiB
minute
This function is used to return the minute (from 0 to 59) of a specified time.
Syntax
minute(string date)
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
date |
Yes |
DATE or STRING |
Date that needs to be processed The following formats are supported:
|
Return Values
The return value is of the INT type.
Example Code
The value 54 is returned.
select minute('2023-08-10 10:54:00');
The value 54 is returned.
select minute('10:54:00');
The value NULL is returned.
select minute('20230810105400');
The value NULL is returned.
select minute(null);
Parent topic: Date Functions