AFTimeZone Methods
- Last UpdatedNov 18, 2025
- 4 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFTimeZone type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| ClearCachedData |
Clears cached time zone data.
| |
| CompareTo(Object) |
Compares this instance with a specified Object.
| |
| CompareTo(AFTimeZone) |
Compares this instance with a specified AFTimeZone.
| |
| CreateCustomTimeZone |
Creates a custom AFTimeZone with a specified identifier, an offset from
Coordinated Universal Time (UTC), a display name, a standard time name, a daylight savings
time name, daylight saving time rules, and a value indicates whether the returned object
reflects daylight saving time information.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).) | |
| Equals(AFTimeZone) |
Indicates whether the current object is equal to another object of the same type.
| |
| FromName |
Gets a AFTimeZone which corresponds to the specified
time zone invariant culture name.
| |
| GetDaylightChanges |
Returns the daylight saving time period for a particular year.
(Overrides TimeZoneGetDaylightChanges(Int32).) | |
| GetHashCode |
Gets the hash code for this instance of the object which is suitable for use in hashing
algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.) | |
| GetSystemTimeZones |
Retrieves a list of AFTimeZone objects by pulling values
from the registry.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetUtcOffset |
Calculates the offset or difference between the time in this time zone and the
Coordinated Universal Time (UTC) for a particular date and time.
(Overrides TimeZoneGetUtcOffset(DateTime).) | |
| IsDaylightSavingTime |
Returns a value indicating whether a specified date and time is within a
daylight savings time period.
(Overrides TimeZoneIsDaylightSavingTime(DateTime).) | |
| LoadSystemTimeZones |
Load the system time zones from XML.
| |
| SaveSystemTimeZones |
Save the system time zones to XML.
| |
| ToLocalTime(DateTime) |
Returns the local time that corresponds to a specified time.
(Overrides TimeZoneToLocalTime(DateTime).) | |
| ToLocalTime(AFTimeZone, DateTime) |
Convert a DateTime to the specified AFTimeZone.
| |
| ToString |
Returns a String that represents the current object.
(Overrides ObjectToString.) | |
| ToString(IFormatProvider) |
Returns a String that represents the current object.
| |
| ToUniversalTime(DateTime) |
Returns the Coordinated Universal Time (UTC) that corresponds to a specified time.
(Overrides TimeZoneToUniversalTime(DateTime).) | |
| ToUniversalTime(AFTimeZone, DateTime) |
Convert a DateTime from the specified AFTimeZone.
|
See Also
In This Topic
Related Links
- ClearCachedData Method
- CompareTo Method
- CreateCustomTimeZone Method
- Equals Method
- FromName Method
- GetDaylightChanges Method
- GetHashCode Method
- GetSystemTimeZones Method
- GetUtcOffset Method
- IsDaylightSavingTime Method
- LoadSystemTimeZones Method
- SaveSystemTimeZones Method
- ToLocalTime Method
- ToString Method
- ToUniversalTime Method