C# Класс Kimono.KDateTime.Spec

Наследование: Object, IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
interceptor Qyoto.SmokeInvocation

Открытые методы

Метод Описание
ClockTime ( ) : KDateTime.Spec The ClockTime time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.ClockTime).
Dispose ( ) : void
Equals ( object o ) : bool Comparison operator.
EquivalentTo ( KDateTime other ) : bool Checks whether this instance is equivalent to another. The two instances are considered to be equivalent if any of the following conditions apply: - both instances are type ClockTime. - both instances are type OffsetFromUTC and their offsets from UTC are equal. - both instances are type TimeZone and their time zones are equal. - both instances are UTC. An instance is considered to be UTC if it is either type UTC, or is type OffsetFromUTC with a zero UTC offset.
GetHashCode ( ) : int
IsClockTime ( ) : bool Returns whether the time specification is a local clock time.
IsLocalZone ( ) : bool Returns whether the time specification is the current local system time zone.
IsOffsetFromUtc ( ) : bool Returns whether the time specification is a local time at a fixed offset from UTC.
IsUtc ( ) : bool Returns whether the time specification is a UTC time. It is considered to be a UTC time if it is either type UTC, or is type OffsetFromUTC with a zero UTC offset.
IsValid ( ) : bool Returns whether the time specification is valid.
LocalZone ( ) : KDateTime.Spec Returns a local time zone time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.LocalZone).
OffsetFromUTC ( int utcOffset ) : KDateTime.Spec Returns a UTC offset time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.OffsetFromUTC, utcOffset). name="utcOffset" number of seconds to add to UTC to get the local time
SetType ( KDateTime type ) : void
SetType ( KDateTime type, int utcOffset ) : void Initialises the time specification. name="type" the time specification type. Note that TimeZone is invalid here. name="utcOffset" number of seconds to add to UTC to get the local time. Ignored if spec is not OffsetFromUTC.
SetType ( KTimeZone tz ) : void Sets the time zone for the time specification. To set the time zone to the current local system time zone, setType(LocalZone) may optionally be used instead. name="tz" new time zone
Spec ( KDateTime type ) : System
Spec ( KDateTime type, int utcOffset ) : System Constructs a time specification. name="type" time specification type, which should not be TimeZone name="utcOffset" number of seconds to add to UTC to get the local time. Ignored if type is not OffsetFromUTC.
Spec ( KTimeZone tz ) : System Constructs a time specification for a given time zone. If tz is KTimeZone.Utc(), the time specification type is set to UTC. name="tz" time zone
TimeZone ( ) : KTimeZone Returns the time zone for the date/time, according to the time specification type as follows: - TimeZone : the specified time zone is returned. - UTC : a UTC time zone is returned. - LocalZone : the current local time zone is returned.
UTC ( ) : KDateTime.Spec The UTC time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.UTC).
UtcOffset ( ) : int Returns the UTC offset associated with the time specification. The UTC offset is the number of seconds to add to UTC to get the local time.
operator ( ) : bool
type ( ) : KDateTime.SpecType Returns the time specification type, i.e. whether it is UTC, has a time zone, etc. If the type is the local time zone, TimeZone is returned; use isLocalZone() to check for the local time zone.

Защищенные методы

Метод Описание
CreateProxy ( ) : void
Spec ( Type dummy ) : System

Приватные методы

Метод Описание
Spec ( ) : System

Описание методов

ClockTime() публичный статический Метод

The ClockTime time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.ClockTime).
public static ClockTime ( ) : KDateTime.Spec
Результат KDateTime.Spec

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Equals() публичный Метод

Comparison operator.
public Equals ( object o ) : bool
o object
Результат bool

EquivalentTo() публичный Метод

Checks whether this instance is equivalent to another. The two instances are considered to be equivalent if any of the following conditions apply: - both instances are type ClockTime. - both instances are type OffsetFromUTC and their offsets from UTC are equal. - both instances are type TimeZone and their time zones are equal. - both instances are UTC. An instance is considered to be UTC if it is either type UTC, or is type OffsetFromUTC with a zero UTC offset.
public EquivalentTo ( KDateTime other ) : bool
other KDateTime
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

IsClockTime() публичный Метод

Returns whether the time specification is a local clock time.
public IsClockTime ( ) : bool
Результат bool

IsLocalZone() публичный Метод

Returns whether the time specification is the current local system time zone.
public IsLocalZone ( ) : bool
Результат bool

IsOffsetFromUtc() публичный Метод

Returns whether the time specification is a local time at a fixed offset from UTC.
public IsOffsetFromUtc ( ) : bool
Результат bool

IsUtc() публичный Метод

Returns whether the time specification is a UTC time. It is considered to be a UTC time if it is either type UTC, or is type OffsetFromUTC with a zero UTC offset.
public IsUtc ( ) : bool
Результат bool

IsValid() публичный Метод

Returns whether the time specification is valid.
public IsValid ( ) : bool
Результат bool

LocalZone() публичный статический Метод

Returns a local time zone time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.LocalZone).
public static LocalZone ( ) : KDateTime.Spec
Результат KDateTime.Spec

OffsetFromUTC() публичный статический Метод

Returns a UTC offset time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.OffsetFromUTC, utcOffset). name="utcOffset" number of seconds to add to UTC to get the local time
public static OffsetFromUTC ( int utcOffset ) : KDateTime.Spec
utcOffset int
Результат KDateTime.Spec

SetType() публичный Метод

public SetType ( KDateTime type ) : void
type KDateTime
Результат void

SetType() публичный Метод

Initialises the time specification. name="type" the time specification type. Note that TimeZone is invalid here. name="utcOffset" number of seconds to add to UTC to get the local time. Ignored if spec is not OffsetFromUTC.
public SetType ( KDateTime type, int utcOffset ) : void
type KDateTime
utcOffset int
Результат void

SetType() публичный Метод

Sets the time zone for the time specification. To set the time zone to the current local system time zone, setType(LocalZone) may optionally be used instead. name="tz" new time zone
public SetType ( KTimeZone tz ) : void
tz KTimeZone
Результат void

Spec() публичный Метод

public Spec ( KDateTime type ) : System
type KDateTime
Результат System

Spec() публичный Метод

Constructs a time specification. name="type" time specification type, which should not be TimeZone name="utcOffset" number of seconds to add to UTC to get the local time. Ignored if type is not OffsetFromUTC.
public Spec ( KDateTime type, int utcOffset ) : System
type KDateTime
utcOffset int
Результат System

Spec() публичный Метод

Constructs a time specification for a given time zone. If tz is KTimeZone.Utc(), the time specification type is set to UTC. name="tz" time zone
public Spec ( KTimeZone tz ) : System
tz KTimeZone
Результат System

Spec() защищенный Метод

protected Spec ( Type dummy ) : System
dummy System.Type
Результат System

TimeZone() публичный Метод

Returns the time zone for the date/time, according to the time specification type as follows: - TimeZone : the specified time zone is returned. - UTC : a UTC time zone is returned. - LocalZone : the current local time zone is returned.
public TimeZone ( ) : KTimeZone
Результат KTimeZone

UTC() публичный статический Метод

The UTC time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.UTC).
public static UTC ( ) : KDateTime.Spec
Результат KDateTime.Spec

UtcOffset() публичный Метод

Returns the UTC offset associated with the time specification. The UTC offset is the number of seconds to add to UTC to get the local time.
public UtcOffset ( ) : int
Результат int

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

type() публичный Метод

Returns the time specification type, i.e. whether it is UTC, has a time zone, etc. If the type is the local time zone, TimeZone is returned; use isLocalZone() to check for the local time zone.
public type ( ) : KDateTime.SpecType
Результат KDateTime.SpecType

Описание свойств

interceptor защищенное свойство

protected SmokeInvocation,Qyoto interceptor
Результат Qyoto.SmokeInvocation