Zmanim.TimeZone.WindowsTimeZone Class Reference

A ITimeZone implementation of the Windows TimeZone (uses the default .net TimeZone class). More...

Inheritance diagram for Zmanim.TimeZone.WindowsTimeZone:
Zmanim.TimeZone.ITimeZone

List of all members.

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.

Detailed Description

A ITimeZone implementation of the Windows TimeZone (uses the default .net TimeZone class).


Constructor & Destructor Documentation

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.

Parameters:
timeZone The time zone.
Zmanim.TimeZone.WindowsTimeZone.WindowsTimeZone ( string  timeZoneName  ) 

Initializes a new instance of the WindowsTimeZone class.

Parameters:
timeZoneName Name of the time zone.

Member Function Documentation

object Zmanim.TimeZone.WindowsTimeZone.Clone (  ) 

Creates a new object that is a copy of the current instance.

Returns:
A new object that is a copy of this 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.

Returns:

Implements Zmanim.TimeZone.ITimeZone.

string Zmanim.TimeZone.WindowsTimeZone.GetId (  ) 

Gets the ID of this time zone.

Returns:
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.

Parameters:
timeFromEpoch the date represented in milliseconds since January 1, 1970 00:00:00 GMT
Returns:
the amount of time in milliseconds to add to UTC to get local time.

Implements Zmanim.TimeZone.ITimeZone.

bool Zmanim.TimeZone.WindowsTimeZone.IsDaylightSavingTime ( DateTime  dateTime  ) 

Ins the daylight time.

Parameters:
dateTime The date time.
Returns:

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.

Parameters:
dateTime The date time.
Returns:

Implements Zmanim.TimeZone.ITimeZone.


Property Documentation

TimeZoneInfo Zmanim.TimeZone.WindowsTimeZone.TimeZone [get, set]

Gets or sets the time zone.

The time zone.


The documentation for this class was generated from the following file:
Generated on Mon May 31 12:33:43 2010 for Zmanim Project by  doxygen 1.6.3