datetime module

datetime::age

Calculate the duration between two datetimes.

Syntax

RQL

Parameters

NameTypeDescription
datetime_aDatetimeThe first datetime
datetime_bDatetimeThe second datetime

Return Value

Returns a Duration representing the time between the two datetimes.

Examples

$ Calculate age between datetimes
$ ctrl+enter to run

Related Functions