MINUTES_SUB

Learn how to use the MINUTES_SUB date/time function in PlaidCloud Lakehouse. Subtracts a specified number of minutes from a datetime - with syntax and examples.

Subtracts a specified number of minutes from a datetime.

Analyze Syntax

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

Analyze Examples

func.minutes_sub('2024-01-01 10:45:00', 45)

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

SQL Syntax

MINUTES_SUB(<datetime>, <n>)

SQL Examples

SELECT MINUTES_SUB('2024-01-01 10:45:00', 45);

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