Exemplo n.º 1
0
 /// <summary>
 /// Create a new Julian Day from a DateUT
 /// </summary>
 /// <param name="date">Date source</param>
 /// <param name="calendar">Calendar source</param>
 public JulianDay(UniversalTime date, DateCalendar?calendar = null)
     : this()
 {
     this.Calendar = calendar ?? SweDate.GetCalendar(date.Year, date.Month, date.Day);
     this.Value    = SweDate.DateToJulianDay(date, this.Calendar);
 }
Exemplo n.º 2
0
 /// <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;
 }