datetime module

datetime::diff

Calculate the difference between two datetimes.

Syntax

RQL

Parameters

NameTypeDescription
datetime_aDatetimeThe first datetime
datetime_bDatetimeThe second datetime

Return Value

Returns a Duration representing the difference between the two datetimes.

Examples

$ Calculate difference between datetimes
$ ctrl+enter to run

Related Functions