C# Class Kimono.KDateTime.Spec

Inheritance: Object, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Protected Properties

Свойство Type Description
interceptor Qyoto.SmokeInvocation

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
CreateProxy ( ) : void
Spec ( Type dummy ) : System

Private Methods

Méthode Description
Spec ( ) : System

Method Details

ClockTime() public static méthode

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

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Equals() public méthode

Comparison operator.
public Equals ( object o ) : bool
o object
Résultat bool

EquivalentTo() public méthode

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
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsClockTime() public méthode

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

IsLocalZone() public méthode

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

IsOffsetFromUtc() public méthode

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

IsUtc() public méthode

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
Résultat bool

IsValid() public méthode

Returns whether the time specification is valid.
public IsValid ( ) : bool
Résultat bool

LocalZone() public static méthode

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

OffsetFromUTC() public static méthode

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
Résultat KDateTime.Spec

SetType() public méthode

public SetType ( KDateTime type ) : void
type KDateTime
Résultat void

SetType() public méthode

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
Résultat void

SetType() public méthode

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
Résultat void

Spec() public méthode

public Spec ( KDateTime type ) : System
type KDateTime
Résultat System

Spec() public méthode

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
Résultat System

Spec() public méthode

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
Résultat System

Spec() protected méthode

protected Spec ( Type dummy ) : System
dummy System.Type
Résultat System

TimeZone() public méthode

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
Résultat KTimeZone

UTC() public static méthode

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

UtcOffset() public méthode

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
Résultat int

operator() public static méthode

public static operator ( ) : bool
Résultat bool

type() public méthode

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
Résultat KDateTime.SpecType

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
Résultat Qyoto.SmokeInvocation