bitflag enum · System

DateTimeStyles

public bitflag enum DateTimeStyles

How Parse reads a date. A date with a time zone (Z, GMT, +02:00) becomes local time, unless AdjustToUniversal makes it UTC or RoundtripKind keeps a Z as UTC; a date without one is Unspecified, unless AssumeLocal or AssumeUniversal say which it is.

Kind
bitflag enum
Namespace
System
Assembly
System.Core
Access
public
Source file
Time.ant

Values

None = 0
#
AdjustToUniversal = 2
#
AssumeLocal = 32
#
AssumeUniversal = 64
#
RoundtripKind = 128
#

Methods

ToString() : str
#

Extension methods

HasFlag(T x) : bool
#

from System

Whether every bit of x is set ((flags & x) == x).

HasAny(T x) : bool
#

from System

Whether any bit of x is set.

With(T x) : T
#

from System

The flags with the bits of x set.

Without(T x) : T
#

from System

The flags with the bits of x cleared.

Toggle(T x) : T
#

from System

The flags with the bits of x flipped.

Source

DateTimeStyles as Antril, decompiled from its Larva HIR.

System.DateTimeStyles.ant
// System.DateTimeStyles — System.Core (decompiled from Larva HIR)

into namespace System
{
	/// How Parse reads a date. A date with a time zone (Z, GMT, +02:00) becomes local time, unless AdjustToUniversal
	/// makes it UTC or RoundtripKind keeps a Z as UTC; a date without one is Unspecified, unless AssumeLocal or
	/// AssumeUniversal say which it is.
	public bitflag enum DateTimeStyles { None = 0, AdjustToUniversal = 2, AssumeLocal = 32, AssumeUniversal = 64, RoundtripKind = 128 }
}
Esc