Table of Contents
API reference

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 = 0

Specifies ISO 8601-like time format, which is equivalent to .NET format string of @"ddThh\:mm\:ss\.fff".

InvariantConstant = 1

Specifies a format defined by InvariantCulture, with a format string of "c".

CurrentLocaleLong = 2

Specifies a format defined by CurrentCulture, with a format string of "G". This format is not recommended for portability reasons.

CurrentLocaleShort = 3

Specifies a format defined by CurrentCulture, with a format string of "g". This format is not recommended for portability reasons.

InvariantLocaleLong = 4

Specifies a format defined by InvariantCulture, with a format string of "G". This format is not recommended for portability reasons.

InvariantLocaleShort = 5

Specifies a format defined by InvariantCulture, with a format string of "g". This format is not recommended for portability reasons.

Custom = 2147483647

Specifies a custom format. This value is not usable directly.