add-seconds-to-dateTime

Adds the specified number of seconds to a given date and time.

Syntax

    add-seconds-to-dateTime(strDateTime1, seconds)

Parameters

strDateTime1 is a string that represents the date and time and is specified in the format yyyy-mm-ddThh:mm:ssZ . For more information about date and time parameters, see Date and time parameters .

seconds is a number that holds the number of seconds to add to the given date and time. A negative number for seconds subtracts seconds from the given date and time.

Returns

A string value in the format yyyy-mm-ddThh:mm:ssZ .

Example

The following expression returns a string value of 1999-11-28T11:11:30Z:

add-seconds-to-dateTime('1999-11-28T11:12:00Z',-30)

// Ethnio survey code removed