TimeZone Class |
Namespace: NetQuarry
The TimeZone type exposes the following members.
Name | Description | |
---|---|---|
Current |
Retrieves the TimeZone object based on the current system TimeZone.
| |
ID |
The unique ID for this TimeZone. See TimeZonesZones for constants for common timezones.
| |
MapId |
The Map ID of this TimeZone as extracted from the Windows Registry.
| |
Name |
The name of the TimeZone.
| |
Now |
Gets a date/time that is set to the current date and time on this computer, expressed as the time in this TimeZone.
| |
ObservesDaylightTime |
Whether daylight saving time is observed in the timezone
| |
OlsonName |
Returns the name of the Olson timezone used in iCal attachments.
These correspond to the IANA time zone database, often referred to as the Olson database:
http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml.
These timezone names as strings like America/New_York and Europe/Paris.
| |
Priority |
When performing timezone detection based on browser UTC offset it is generally impossible to determine a unique timezone
since at any point in time there are generally a few timezones for each UTC offest that match. Priority is used to determine
which, of multiple matches, to prefer -- highest priority wins. The default priorities are as follows (otherwise zero):
| |
RegIndex |
The Index for this TimeZone in the Windows registry.
| |
RegKey |
The Windows registry key for this TimeZone.
Blank or null if this TimeZone was not loaded from the registry.
| |
TimeZoneInfo |
Gets the internal TimeZoneInfo object for this TimeZone.
| |
UTC |
Retrieves the TimeZone object for the UTC (GMT) timezone.
|
Name | Description | |
---|---|---|
Clone |
Create and returns a copy of this object.
| |
CompareTo |
Compares two TimeZone objects for ordering. TimeZones are ordered by ascending Bias.
| |
Convert(TimeZone, DateTime) |
Converts the local time of the current timezone to the local time of the
destination timezone.
| |
Convert(TimeZone, TimeZone, DateTime) |
Converts the local time of the source timezone to the local time of the
destination timezone.
| |
CurrentOffset |
Get the timezone's current offset from UTC (in minutes) taking into account
the current state of DaylightTime.
| |
Dump |
Dump out a text representation of the TimeZone for debugging purposes.
| |
Equals |
Compares two TimeZone objects for equality.
(Overrides ObjectEquals(Object).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetDaylightChanges |
The daylight time changes for the current timezone
| |
GetDaylightDateTime |
The date of the daylight time change.
| |
GetDaylightRecurrencePattern |
Returns the Daylight time recurrence pattern.
| |
GetHashCode |
Get the bias (offset from UTC, in minutes) for this TimeZone.
(Overrides ObjectGetHashCode.) | |
GetStandardDateTime |
The date of the standard time change
| |
GetStandardRecurrencePattern |
Returns the standard time recurrence pattern.
| |
GetTimeZoneName |
The name of the current TimeZone structure (Daylight or Standard) based on the date/time.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetVTIMEZONE |
Returns the VTIMEZONE representing this TimeZone object.
| |
IsDaylightSavingTime(DateTime) |
Returns a value indicating whether the specified date and time is within a
daylight saving time period.
| |
IsDaylightSavingTime(DateTime, DaylightTime) |
Returns a value indicating whether the specified date and time is within a
daylight saving time period.
| |
LoadFromRegistry |
Load a TimeZone from the specified Windows registry key.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToLocalTime(DateTime) |
Converts the UtcTime to the local time of the current timezone.
| |
ToLocalTime(TimeZone, DateTime) |
Converts the UtcTime to the local time of the destination timezone.
| |
ToString |
Convert the TimeZone into a string.
(Overrides ObjectToString.) | |
ToUniversalTime(DateTime) |
Converts a local time of the current timezone to a Utc time
| |
ToUniversalTime(TimeZone, DateTime) |
Converts a local time of the source timezone to a Utc time
|
Name | Description | |
---|---|---|
Equality |
Equality operator for TimeZone object.
| |
Inequality |
Inequality operator for TimeZone object.
|
Name | Description | |
---|---|---|
EqualValue |
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.) |