> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# seconds_add

> DATETIME SECONDS_ADD(DATETIME expr1,INT expr2)

## description

### Syntax

```Haskell theme={null}
DATETIME SECONDS_ADD(DATETIME expr1,INT expr2)
```

Add a specified time interval to the date. Unit is second.

The expr1 parameter is a valid datetime expression.

The expr2 parameter is the seconds you want to add.

## example

```Plain Text theme={null}
select seconds_add('2010-11-30 23:50:50', 2);
+---------------------------------------+
| seconds_add('2010-11-30 23:50:50', 2) |
+---------------------------------------+
| 2010-11-30 23:50:52                   |
+---------------------------------------+

select seconds_add('2010-11-30', 2);
+------------------------------+
| seconds_add('2010-11-30', 2) |
+------------------------------+
| 2010-11-30 00:00:02          |
+------------------------------+
```

## keyword

SECONDS\_ADD,ADD


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.