TimeSpan

newtype TimeSpan: long

Signed duration stored as milliseconds.

Remarks

Whole-unit accessors truncate toward zero.

Instance members

TimeSpan

Returns the absolute duration.

TimeSpan

Adds another duration.

nuint

Formats a duration as H:MM:SS with optional milliseconds.

long
getDays()
property

Gets the total whole days, truncated toward zero.

long
getHours()
property

Gets the total whole hours, truncated toward zero.

long
getMinutes()
property

Gets the total whole minutes, truncated toward zero.

long
getMs()
property

Gets the total milliseconds.

long
getSeconds()
property

Gets the total whole seconds, truncated toward zero.

double

Gets the total days as a floating-point value.

double

Gets the total hours as a floating-point value.

double

Gets the total minutes as a floating-point value.

double

Gets the total seconds as a floating-point value.

bool

Returns true when this value is not INVALID.

TimeSpan

Returns the negated duration.

TimeSpan

Subtracts another duration.

Static members

TimeSpan

Creates a duration from days.

TimeSpan

Creates a duration from hours.

TimeSpan

Creates a duration from minutes.

TimeSpan

Creates a duration from milliseconds.

TimeSpan

Creates a duration from seconds.

const TimeSpan

Invalid duration sentinel.

const TimeSpan

Largest duration value.

const TimeSpan

Smallest non-invalid duration value.

const TimeSpan

Zero milliseconds.

Generated with campc v0.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.