private ComplexZmanimCalendar GetZmanim() { string locationName = "Lakewood, NJ"; double latitude = 40.09596; //Lakewood, NJ double longitude = -74.22213; //Lakewood, NJ double elevation = 0; //optional elevation var timeZone = new WindowsTimeZone(); var location = new GeoLocation(locationName, latitude, longitude, elevation, timeZone); return new ComplexZmanimCalendar(location); }
///<summary> /// Default GeoLocation constructor will set location to the Prime Meridian /// at Greenwich, England and a TimeZone of GMT. The longitude will be set to /// 0 and the latitude will be 51.4772 to match the location of the /// <a href = "http://www.rog.nmm.ac.uk">Royal Observatory, Greenwich </a>. No /// daylight savings time will be used. ///</summary> public GeoLocation() { LocationName = "Greenwich, England"; Longitude = 0; // added for clarity Latitude = 51.4772; #if SILVERLIGHT TimeZone = new WindowsTimeZone(TimeZoneInfo.Utc); #else TimeZone = new WindowsTimeZone("GMT"); #endif }
///<summary> /// Default GeoLocation constructor will set location to the Prime Meridian /// at Greenwich, England and a TimeZone of GMT. The longitude will be set to /// 0 and the latitude will be 51.4772 to match the location of the /// <a href = "http://www.rog.nmm.ac.uk">Royal Observatory, Greenwich </a>. No /// daylight savings time will be used. ///</summary> public GeoLocation() { LocationName = "Greenwich, England"; Longitude = 0; // added for clarity Latitude = 51.4772; TimeZone = new WindowsTimeZone(TimeZoneInfo.Utc); }