예제 #1
0
 public Location(double value, EnumLocationType type)
 {
     int[] degmin = AstroUtility.GetDegreeMinuteSeconds(value);
     DegValue       = Math.Abs(degmin[0]);
     MinuteValue    = Math.Abs(degmin[1]);
     DirectionValue = this.ofVal(value, type);
 }
예제 #2
0
        public AstroPlace()
        {
            this.Country   = "Sri Lanka";
            this.City      = "Colombo";
            this.Longitude = 79.861244;
            this.Latitude  = 6.9271;
            this.TimeZone  = -1 * Longitude / 15.0;
            int[] tz = AstroUtility.GetDegreeMinuteSeconds(TimeZone);
            this.TimeZoneString = tz[0].ToString() + ":" + tz[1];

            this.birthDateTime = new DateTime(1975, 7, 2, 12, 34, 0);
        }
예제 #3
0
        public AstroPlace(string city, string country, double latitude, double longitude, double timeZone, DateTime dateTime)
        {
            AdjustTime(longitude, dateTime);

            this.Country   = country;
            this.City      = city;
            this.Longitude = longitude;
            this.Latitude  = latitude;

            int[] tz = AstroUtility.GetDegreeMinuteSeconds(TimeZone);
            this.TimeZoneString = tz[0].ToString() + ":" + tz[1];
        }