A ITimeZone implementation of the Windows TimeZone (uses the default .net TimeZone class). More...
Public Member Functions | |
WindowsTimeZone () | |
Initializes a new instance of the WindowsTimeZone class. | |
WindowsTimeZone (TimeZoneInfo timeZone) | |
Initializes a new instance of the WindowsTimeZone class. | |
WindowsTimeZone (string timeZoneName) | |
Initializes a new instance of the WindowsTimeZone class. | |
object | Clone () |
Creates a new object that is a copy of the current instance. | |
int | UtcOffset (DateTime dateTime) |
UTCs the offset. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving. | |
bool | IsDaylightSavingTime (DateTime dateTime) |
Ins the daylight time. | |
string | GetId () |
Gets the ID of this time zone. | |
string | GetDisplayName () |
Returns a name of this time zone suitable for presentation to the user in the default locale. This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the normalized custom ID format. | |
int | GetOffset (long timeFromEpoch) |
Returns the offset of this time zone from UTC at the specified date. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving. | |
Properties | |
TimeZoneInfo | TimeZone [get, set] |
Gets or sets the time zone. |
A ITimeZone implementation of the Windows TimeZone (uses the default .net TimeZone class).
Zmanim.TimeZone.WindowsTimeZone.WindowsTimeZone | ( | ) |
Initializes a new instance of the WindowsTimeZone class.
Zmanim.TimeZone.WindowsTimeZone.WindowsTimeZone | ( | TimeZoneInfo | timeZone | ) |
Initializes a new instance of the WindowsTimeZone class.
timeZone | The time zone. |
Zmanim.TimeZone.WindowsTimeZone.WindowsTimeZone | ( | string | timeZoneName | ) |
Initializes a new instance of the WindowsTimeZone class.
timeZoneName | Name of the time zone. |
object Zmanim.TimeZone.WindowsTimeZone.Clone | ( | ) |
Creates a new object that is a copy of the current instance.
string Zmanim.TimeZone.WindowsTimeZone.GetDisplayName | ( | ) |
Returns a name of this time zone suitable for presentation to the user in the default locale. This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the normalized custom ID format.
Implements Zmanim.TimeZone.ITimeZone.
string Zmanim.TimeZone.WindowsTimeZone.GetId | ( | ) |
Gets the ID of this time zone.
Implements Zmanim.TimeZone.ITimeZone.
int Zmanim.TimeZone.WindowsTimeZone.GetOffset | ( | long | timeFromEpoch | ) |
Returns the offset of this time zone from UTC at the specified date. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving.
timeFromEpoch | the date represented in milliseconds since January 1, 1970 00:00:00 GMT |
Implements Zmanim.TimeZone.ITimeZone.
bool Zmanim.TimeZone.WindowsTimeZone.IsDaylightSavingTime | ( | DateTime | dateTime | ) |
Ins the daylight time.
dateTime | The date time. |
Implements Zmanim.TimeZone.ITimeZone.
int Zmanim.TimeZone.WindowsTimeZone.UtcOffset | ( | DateTime | dateTime | ) |
UTCs the offset. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving.
dateTime | The date time. |
Implements Zmanim.TimeZone.ITimeZone.
TimeZoneInfo Zmanim.TimeZone.WindowsTimeZone.TimeZone [get, set] |
Gets or sets the time zone.
The time zone.