seconds_add

description

Syntax

DATETIME SECONDS_ADD(DATETIME date, INT seconds)

ADD a specified number of seconds from a datetime or date

The parameter date can be DATETIME or DATE, and the return type is DATETIME.

example

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

keywords

  1. SECONDS_ADD