Durations
Durations
Imported from the upstream Vibescript examples at durations/durations.vibe and runnable in the browser today.
Source
durations/durations.vibe
# vibe: 0.2
def reminder_delay_seconds
(5.minutes).seconds
end
def event_window
2.hours
end
def combine_delay_seconds(first, second)
first.seconds + second.seconds
end
def run
{
reminder_delay: reminder_delay_seconds,
event_window: event_window,
combined: combine_delay_seconds(5.minutes, 10.minutes)
}
end
Output
Press run to execute run from this example.