This function returns the duration of a trajectory object.

Syntax

interval ST_Duration(trajectory traj);

Parameters

Parameter Description
traj The trajectory object.

Examples

Select ST_Duration(traj) from traj_table;