bitflags · System

DateTimeStyles

public bitflags System.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
bitflags
Namespace
System
Assembly
System.Core
Access
public
Source file
Time.ant

Values

static enumvalue None: System.DateTimeStyles
#
static enumvalue AdjustToUniversal: System.DateTimeStyles
#
static enumvalue AssumeLocal: System.DateTimeStyles
#
static enumvalue AssumeUniversal: System.DateTimeStyles
#
static enumvalue RoundtripKind: System.DateTimeStyles
#

Methods

method ToString() -> System.String<u8>
#

Extension methods

static method HasFlag(flags: T, x: T) -> bool
#

from System

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

static method HasAny(flags: T, x: T) -> bool
#

from System

Whether any bit of x is set.

static method With(flags: T, x: T) -> T
#

from System

The flags with the bits of x set.

static method Without(flags: T, x: T) -> T
#

from System

The flags with the bits of x cleared.

static method Toggle(flags: T, x: T) -> T
#

from System

The flags with the bits of x flipped.

Source

DateTimeStyles as Larva HIR, decompiled from its Larva HIR.

System.DateTimeStyles.hir
// 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 bitflags System.DateTimeStyles
{
    static enumvalue None: System.DateTimeStyles
    static enumvalue AdjustToUniversal: System.DateTimeStyles
    static enumvalue AssumeLocal: System.DateTimeStyles
    static enumvalue AssumeUniversal: System.DateTimeStyles
    static enumvalue RoundtripKind: System.DateTimeStyles
    method ToString() -> System.String<u8>
}
Esc