Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new JewishDate with the specified Hebrew year, month, day and absolute day.
 /// Caution: If the absolute day doesn't correctly match the given year/month/day, weird things will happen.
 /// </summary>
 /// <param name="year">The year - counted from the creation of the world</param>
 /// <param name="month">The Jewish month. As it is in the Torah, Nissan is 1.</param>
 /// <param name="day">The day of the month</param>
 /// <param name="absoluteDay">The "absolute day"</param>
 public JewishDate(int year, int month, int day, int absoluteDay)
 {
     this._year          = year;
     this._month         = month;
     this._day           = day;
     this._absoluteDate  = absoluteDay;
     this._gregorianDate = JewishDateCalculations.GetGregorianDateFromJewishDate(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a Hebrew date from the "absolute date".
 /// In other words, the Hebrew date on the day that is the given number of days after/before December 31st, 1 BCE
 /// </summary>
 /// <param name="absoluteDate">The number of days elapsed since the theoretical Gregorian date Sunday, December 31, 1 BCE.
 /// Since there is no year 0 in the calendar, the year following 1 BCE is 1 CE.
 /// So, the Gregorian date January 1, 1 CE is absolute date number 1.</param>
 public JewishDate(int absoluteDate)
 {
     this.SetFromAbsoluteDate(absoluteDate);
     this._gregorianDate = JewishDateCalculations.GetGregorianDateFromJewishDate(this);
 }