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

  1. mysql> select hours_add("2020-02-02 02:02:02", 1);
  2. +-------------------------------------+
  3. | hours_add('2020-02-02 02:02:02', 1) |
  4. +-------------------------------------+
  5. | 2020-02-02 03:02:02 |
  6. +-------------------------------------+

keywords

  1. HOURS_ADD