Checks an object is a dtt_duration.

check_duration(x, x_name = substitute(x))

Arguments

x

The object to check.

x_name

A string of the name of the object.

Value

An invisible copy of x (if it doesn't throw an error).

See also

Examples

check_duration(dtt_duration(1L))