VeloDB Cloud
SQL Manual
Functions
date-time-functions
minutes_add

minutes_add

Description

Syntax:

DATETIME MINUTES_ADD(DATETIME date, INT minutes)

This function adds the specified minutes to the given date.

date can be of DATE or DATETIME type, and the returned result is of DATETIME type.

Example

mysql> select minutes_add("2020-02-02", 1);
+---------------------------------------+
| minutes_add('2020-02-02 00:00:00', 1) |
+---------------------------------------+
| 2020-02-02 00:01:00                   |
+---------------------------------------+

Keywords

MINUTES_ADD