Enum TimeSpanFormatKind
- Namespace
- DisCatSharp.Common.Serialization
- Assembly
- DisCatSharp.Common.dll
Defines which built-in format to use for TimeSpan serialization.
See https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-timespan-format-strings and https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-timespan-format-strings for more details.
public enum TimeSpanFormatKind
- Extension Methods
Fields
ISO8601 = 0Specifies ISO 8601-like time format, which is equivalent to .NET format string of @"ddThh\:mm\:ss\.fff".
InvariantConstant = 1Specifies a format defined by InvariantCulture, with a format string of "c".
CurrentLocaleLong = 2Specifies a format defined by CurrentCulture, with a format string of "G". This format is not recommended for portability reasons.
CurrentLocaleShort = 3Specifies a format defined by CurrentCulture, with a format string of "g". This format is not recommended for portability reasons.
InvariantLocaleLong = 4Specifies a format defined by InvariantCulture, with a format string of "G". This format is not recommended for portability reasons.
InvariantLocaleShort = 5Specifies a format defined by InvariantCulture, with a format string of "g". This format is not recommended for portability reasons.
Custom = 2147483647Specifies a custom format. This value is not usable directly.