C# Class Kimono.KDateTime.Spec

Inheritance: Object, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross

Protected Properties

Property Type Description
interceptor Qyoto.SmokeInvocation

Public Methods

Method Description
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.

Protected Methods

Method Description
CreateProxy ( ) : void
Spec ( Type dummy ) : System

Private Methods

Method Description
Spec ( ) : System

Method Details

ClockTime() public static method

The ClockTime time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.ClockTime).
public static ClockTime ( ) : KDateTime.Spec
return KDateTime.Spec

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Equals() public method

Comparison operator.
public Equals ( object o ) : bool
o object
return bool

EquivalentTo() public method

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
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsClockTime() public method

Returns whether the time specification is a local clock time.
public IsClockTime ( ) : bool
return bool

IsLocalZone() public method

Returns whether the time specification is the current local system time zone.
public IsLocalZone ( ) : bool
return bool

IsOffsetFromUtc() public method

Returns whether the time specification is a local time at a fixed offset from UTC.
public IsOffsetFromUtc ( ) : bool
return bool

IsUtc() public method

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
return bool

IsValid() public method

Returns whether the time specification is valid.
public IsValid ( ) : bool
return bool

LocalZone() public static method

Returns a local time zone time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.LocalZone).
public static LocalZone ( ) : KDateTime.Spec
return KDateTime.Spec

OffsetFromUTC() public static method

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
return KDateTime.Spec

SetType() public method

public SetType ( KDateTime type ) : void
type KDateTime
return void

SetType() public method

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
return void

SetType() public method

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
return void

Spec() public method

public Spec ( KDateTime type ) : System
type KDateTime
return System

Spec() public method

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
return System

Spec() public method

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
return System

Spec() protected method

protected Spec ( Type dummy ) : System
dummy System.Type
return System

TimeZone() public method

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
return KTimeZone

UTC() public static method

The UTC time specification. Provided as a shorthand for KDateTime.Spec(KDateTime.UTC).
public static UTC ( ) : KDateTime.Spec
return KDateTime.Spec

UtcOffset() public method

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
return int

operator() public static method

public static operator ( ) : bool
return bool

type() public method

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
return KDateTime.SpecType

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
return Qyoto.SmokeInvocation