ADDTIME()

Overview

Returns the sum of two TIME or DATETIME expressions.

USAGE

ADDTIME(timestamp, time)

Argument Name

Description

timestamp

The starting TIME or DATETIME

time

The amount of time to add

DETAILS

ADDTIME() is a date-time function that returns the sum of two time expressions.

A NULL is returned if any argument is NULL.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT ADDTIME('2020-02-28 12:34:56', '1 11:25:04');
+----------------------------------------------+
| ADDTIME('2020-02-28 12:34:56', '1 11:25:04') |
+----------------------------------------------+
| 2020-03-01 00:00:00                          |
+----------------------------------------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES