Class DurationOptions
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
MaxUnit
Gets or sets the largest time unit to include in the formatted duration. Defaults to Day.
public EUnit MaxUnit { get; set; }
Property Value
MinUnit
Gets or sets the smallest time unit to include in the formatted duration. Defaults to Second.
public EUnit MinUnit { get; set; }
Property Value
StringOptions
Gets or sets the string formatting options for the duration output.
public DurationStringOptions StringOptions { get; set; }