Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

duration

🌌time.duration

time.duration -- value representing a duration, i.e., a time span

This is intendend for high precision time specification and measurement, it
uses a time resolution of 1ns.

The maximum value is about 580 years, so this is not intenden for use in
calendars that may require time spans exceeding several centuries or millenia,
nor astrological time spans.

create a string representation of this duration. The string
representation is not accurate, it consists of at least two
and at most 4 decimal digits followed by a time unit string.

redefines Object.asString:

this duration in whole days, omitting fractional part

this duration in whole hours, omitting fractional part

this duration in micro seconds, omitting fractional part

this duration in milli seconds, omitting fractional part

this duration in whole minutes, omitting fractional part

this duration in whole seconds, omitting fractional part

this duration in whole weeks, omitting fractional part

this duration in whole Julian years, omitting fractional part