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