C# 클래스 Kimono.KDateTime.Spec

상속: Object, IDisposable
파일 보기 프로젝트 열기: 0xd34df00d/Qross

보호된 프로퍼티들

프로퍼티 타입 설명
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