Skip to content
Contact us

SecondsAfterDateTime()

SecondsAfter ( time1, time2 )

ArgumentDescription
DateTime1A datetime value (String) that is the start datetime of the interval being measured.
DateTime2A datetime value (String) that is the end datetime of the interval.

Data type: Long Returns the number of seconds datetime2 occurs after datetime1. If time2 occurs before time1, SecondsAfterDateTime returns a negative number.

SecondsAfterDateTime( '2023-09-02 21:15:30') , '2023-09-02 21:15:45' )

This expression returns 15

SecondsAfterDateTime( '2023-09-02 21:15:45' , '2023-09-02 21:15:30 )

Example 2 This expression returns -15

Note that the arguments are of datatype String.