SECONDS_ADD

Learn how to use the SECONDS_ADD date/time function in PlaidCloud Lakehouse. Adds a specified number of seconds to a datetime - with syntax and examples.

Adds a specified number of seconds to a datetime.

Analyze Syntax

func.seconds_add(<datetime>, <n>)

Analyze Examples

func.seconds_add('2024-01-01 00:00:00', 90)

┌───────────────────────┐
 '2024-01-01 00:01:30'  
└───────────────────────┘

SQL Syntax

SECONDS_ADD(<datetime>, <n>)

SQL Examples

SELECT SECONDS_ADD('2024-01-01 00:00:00', 90);

┌─────────────────────┐
 2024-01-01 00:01:30  
└─────────────────────┘