In This Topic
The following tables list the members exposed by NTimeZone.
Public Constructors
Public Properties
| Name | Description |
| BaseUtcOffset | Gets the time difference between the current time zone's standard time and Coordinated Universal Time (UTC). |
| DaylightName | Gets the localized display name for the current time zone's daylight saving time. |
| DisplayName | Gets the localized general display name that represents the time zone. |
| Id | Gets the time zone identifier. |
| Local | Gets a NTimeZone object that represents the local time zone. |
| StandardName | Gets the localized display name for the time zone's standard time. |
| SupportsDaylightSavingTime | Gets a value indicating whether the time zone has any daylight saving time rules. |
| Utc | Gets a NTimeZone object that represents the Coordinated Universal Time (UTC) zone. |
Top
Public Methods
| Name | Description |
| ConvertTime | Overloaded. Converts a time from one time zone to another. |
| ConvertTimeToUtc | Converts the given time in the specified time zone to Coordinated Universal Time (UTC). |
| CreateCustom | Creates a custom time zone with a specified identifier, an offset from Coordinated Universal Time (UTC), a display name, a standard time name, a daylight saving time name, daylight saving time rules, and a value that indicates whether the returned object reflects daylight saving time information. |
| DeepClone | Creates an identical copy of this time zone. |
| FindById | Retrieves a time zone by ID. Returns null if a time zone with the given ID is not registered. |
| FindByUtcOffsetAndDisplayName | Retrieves a time zone by UTC offset and full or partial display name. Returns null if a time zone with the given UTC offset and display name is not registered. |
| GetAllTimeZones | Returns an array with all currently registered time zones. |
| GetUtcOffset | Calculates the offset or difference between the time in this time zone and Coordinated Universal Time (UTC) for a particular date and time. |
| SafeConvertTime | Safely converts a time from one time zone to another. If the dateTime is an invalid time (that is, it represents a time that does not exist because of a time zone's adjustment rules), then this method rounds it to the nearest valid date time instead of throwing an exception. |
| SafeConvertTimeToUtc | Safely converts the given time in the specified time zone to Coordinated Universal Time (UTC). If the dateTime is an invalid time (that is, it represents a time that does not exist because of a time zone's adjustment rules), then this method rounds it to the nearest valid date time instead of throwing an exception. |
| ToString | Gets the string representation of this object. |
Top
See Also