Datetime.subSeconds

This function subtracts the given number of seconds from the datetime.

Syntax

datetime.subSeconds(datetime, seconds)

Arguments

Argument

Type

Description

datetime

datetime

Specify the date and time.

seconds

int

Seconds to be subtracted.

Returns

Type

Description

datetime

Date and time after subtracting the specified seconds.

Examples

The function datetime.subSeconds(datetime.current(),10) returns what the date and time was 10 seconds ago.