Berserk Docs
Scalar FunctionsType Functions

astimespan

Extract a timespan from a dynamic or pass through a timespan value. Other types (including duration strings) become null.

Syntax

astimespan(value)

Parameters

Prop

Type

Returns: timespan

Examples

Example 1

print astimespan(dynamic(1h))
print_0 (timespan)
01:00:00

On this page