Skip to main content

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

NameDataTypeList Options                          Description
time1datetimeThe starting time
time2datetimeThe ending time (time1 is subtracted from time2)