Class FromToTSHDt<T>
- Namespace
- SunamoDateTime._public
- Assembly
- SunamoDateTime.dll
Represents a time range with From and To values of type T. EN: Generic base class for time range with configurable usage type. CZ: Generická bázová třída pro časový rozsah s konfigurovatelným typem použití.
public class FromToTSHDt<T>
Type Parameters
TThe type of the From and To values (typically long for Unix timestamps or int for other purposes)
- Inheritance
-
FromToTSHDt<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
FromToTSHDt()
Initializes a new instance of the FromToTSHDt class. EN: Sets default UseType based on generic type T. CZ: Nastaví výchozí UseType podle generického typu T.
public FromToTSHDt()
FromToTSHDt(T, T, FromToUseDateTime)
Initializes a time range with specified From and To values. EN: Creates a time range with the given start and end values. CZ: Vytvoří časový rozsah se zadanými počáteční a koncovou hodnotou.
public FromToTSHDt(T from, T to, FromToUseDateTime useType = FromToUseDateTime.DateTime)
Parameters
fromTThe start value of the time range
toTThe end value of the time range
useTypeFromToUseDateTimeThe type of time range usage (DateTime, Unix, etc.)
Fields
fromLong
Backing field storing the From value as a long.
protected long fromLong
Field Value
toLong
Backing field storing the To value as a long.
protected long toLong
Field Value
Properties
From
Gets or sets the start value of the time range. EN: Start value converted from/to long backing field. CZ: Počáteční hodnota konvertovaná z/na long backing field.
public T From { get; set; }
Property Value
- T
FromL
Gets the start value as long. EN: Returns the backing field value directly. CZ: Vrací hodnotu backing fieldu přímo.
public long FromL { get; }
Property Value
IsEmpty
Gets or sets whether this time range is empty (contains no meaningful data).
public bool IsEmpty { get; set; }
Property Value
To
Gets or sets the end value of the time range. EN: End value converted from/to long backing field. CZ: Koncová hodnota konvertovaná z/na long backing field.
public T To { get; set; }
Property Value
- T
ToL
Gets the end value as long. EN: Returns the backing field value directly. CZ: Vrací hodnotu backing fieldu přímo.
public long ToL { get; }
Property Value
UseType
Gets or sets how the time range values should be interpreted.
public FromToUseDateTime UseType { get; set; }