SECOND
Description
SECOND function is used to extract the minute part from a given timestamp type expression. This function accepts a timestamp type parameter and returns an integer representing the minute part of that time.
Parameter Description
- timestamp: A timestamp type expression, which can be a string, timestamp, etc.
Return Result
Returns an integer representing the minute part of the timestamp parameter.
Example
- Extract the minute part from a string type time:
- Extract the minute part from the current timestamp:
- Extract the minute part from the time in string format and use it in conjunction with other time operations:
- Extract the minute part from the current timestamp and convert it to string format: