Click or drag to resize

TimeZone Methods

The TimeZone type exposes the following members.

Methods
  NameDescription
Public methodClone
Create and returns a copy of this object.
Public methodCompareTo
Compares two TimeZone objects for ordering. TimeZones are ordered by ascending Bias.
Public methodConvert(TimeZone, DateTime)
Converts the local time of the current timezone to the local time of the destination timezone.
Public methodStatic memberConvert(TimeZone, TimeZone, DateTime)
Converts the local time of the source timezone to the local time of the destination timezone.
Public methodCurrentOffset
Get the timezone's current offset from UTC (in minutes) taking into account the current state of DaylightTime.
Public methodDump
Dump out a text representation of the TimeZone for debugging purposes.
Public methodEquals
Compares two TimeZone objects for equality.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetDaylightChanges
The daylight time changes for the current timezone
Public methodGetDaylightDateTime
The date of the daylight time change.
Public methodGetDaylightRecurrencePattern
Returns the Daylight time recurrence pattern.
Public methodGetHashCode
Get the bias (offset from UTC, in minutes) for this TimeZone.
(Overrides ObjectGetHashCode.)
Public methodGetStandardDateTime
The date of the standard time change
Public methodGetStandardRecurrencePattern
Returns the standard time recurrence pattern.
Public methodGetTimeZoneName
The name of the current TimeZone structure (Daylight or Standard) based on the date/time.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVTIMEZONE
Returns the VTIMEZONE representing this TimeZone object.
Public methodIsDaylightSavingTime(DateTime)
Returns a value indicating whether the specified date and time is within a daylight saving time period.
Public methodStatic memberIsDaylightSavingTime(DateTime, DaylightTime)
Returns a value indicating whether the specified date and time is within a daylight saving time period.
Public methodStatic memberLoadFromRegistry
Load a TimeZone from the specified Windows registry key.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToLocalTime(DateTime)
Converts the UtcTime to the local time of the current timezone.
Public methodStatic memberToLocalTime(TimeZone, DateTime)
Converts the UtcTime to the local time of the destination timezone.
Public methodToString
Convert the TimeZone into a string.
(Overrides ObjectToString.)
Public methodToUniversalTime(DateTime)
Converts a local time of the current timezone to a Utc time
Public methodStatic memberToUniversalTime(TimeZone, DateTime)
Converts a local time of the source timezone to a Utc time
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also