datetime.addSeconds

This function adds the specified number of seconds to the mentioned datetime.

Syntax

datetime.addSeconds(datetime, 0)

Arguments

Argument

Type

Description

datetime

datetime

Date and time to which the seconds need to be added.

seconds

int

Number of seconds to be added. The default is 0.

Returns

Type

Description

datetime

Date and time with the 30 seconds added.

Examples

The function datetime.addSeconds(datetime.current(), 30) returns the date and time of 30 seconds later.