hours_add
hours_addβ
descriptionβ
Syntaxβ
DATETIME HOURS_ADD(DATETIME date, INT hours)
Add specified hours from date time or date
The parameter date can be DATETIME or DATE, and the return type is DATETIME.
exampleβ
mysql> select hours_add("2020-02-02 02:02:02", 1);
+-------------------------------------+
| hours_add('2020-02-02 02:02:02', 1) |
+-------------------------------------+
| 2020-02-02 03:02:02 |
+-------------------------------------+
keywordsβ
HOURS_ADD