DateDiffSeconds

Description

Returns the number of seconds between the end_datetime and the start_datetime.

Syntax

DateDiffSeconds(end_datetime, start_datetime)

Arguments

  end_datetime - string expression in ISO 8601 format. 

  start_datetime - string expression in ISO 8601 format.

Examples

DateDiffSeconds('2009-01-07T01:07:01.000Z','2008-02-01T00:00:00.000Z') returns 29466421

Notes

end_datetime and start_datetime must be in ISO 8601 date time format, otherwise the job will fail. See Using ISO 8601 date/time functions.

Return value datatype

Long

Impact of null value

If any (or all) inputs are null, returns null.

Feedback and Knowledge Base