TIME_DIFF_MINUTES
Returns the difference in two input times in minutes
Example Usage
TIME_DIFF("2022-03-22 07:00", "2022-03-22 07:06") -> 6
TIME_DIFF("2022-03-22 07:00", "2022-03-22 06:51") -> -9
Overview
Function signature
TIME_DIFF_MINUTES(time1, time2)
Category
Date
Return data type
int
Arguments
Name | DataType | List Options | Description |
---|---|---|---|
time1 | datetime | The starting time | |
time2 | datetime | The ending time (time1 is subtracted from time2) |