/// <summary> /// Create a new Julian Day from a DateUT /// </summary> /// <param name="date">Date source</param> /// <param name="calendar">Calendar source</param> public JulianDay(DateUT date, DateCalendar?calendar = null) : this() { this.Calendar = calendar ?? SweDate.GetCalendar(date.Year, date.Month, date.Day); this.Value = SweDate.DateToJulianDay(date, this.Calendar); }
/// <summary> /// Create a new Julian Day from his value /// </summary> /// <param name="val">The Julian Day value</param> public JulianDay(double val, DateCalendar?calendar = null) : this() { this.Calendar = calendar ?? SweDate.GetCalendar(val); this.Value = val; }