Berserk Docs
Scalar FunctionsDate & Time Functions

make_timespan

Creates a timespan value from components.

Syntax

make_timespan(hour, minute, second)

Parameters

Prop

Type

Returns: timespan

Examples

Example 1 — 48 hours and 30 minutes — a North Sea crossing

print make_timespan(48, 30)
print_0 (timespan)
2.00:30:00

Example 2 — With seconds — 48h 30m 15s

print make_timespan(48, 30, 15)
print_0 (timespan)
2.00:30:15

On this page