Table of Contents

Class DurationOptions

Namespace
Tharga.Toolkit
Assembly
Tharga.Toolkit.Standard.dll

Configuration options for formatting a duration, including the range of time units and string formatting options.

public class DurationOptions
Inheritance
DurationOptions
Inherited Members
Extension Methods

Properties

BaseValue

Gets or sets the base date and time value used as the reference point for duration calculation.

public DateTime? BaseValue { get; set; }

Property Value

DateTime?

MaxUnit

Gets or sets the largest time unit to include in the formatted duration. Defaults to Day.

public EUnit MaxUnit { get; set; }

Property Value

EUnit

MinUnit

Gets or sets the smallest time unit to include in the formatted duration. Defaults to Second.

public EUnit MinUnit { get; set; }

Property Value

EUnit

StringOptions

Gets or sets the string formatting options for the duration output.

public DurationStringOptions StringOptions { get; set; }

Property Value

DurationStringOptions