title: Julian Date to DateTime INCLUDING HOURS AND MINUTE
body: <p>I'm trying to convert a Julian Date which includes hours minutes and seconds to a DateTime in C#.</p>
  
  <p>This is the number: <code>2457285.7795969</code></p>
  
  <p>I can calculate the <code>DateTime</code> <strong>excluding</strong> the hours and the minutes with this function.</p>
  
  <pre><code>public static DateTime FromJulian(long julianDate)
  {
      long L = julianDate + 68569;
      long N = (long)((4 * L) / 146097);
      L = L - ((long)((146097 * N + 3) / 4));
      long I = (long)((4000 * (L + 1) / 1461001));
      L = L - (long)((1461 * I) / 4) + 31;
      long J = (long)((80 * L) / 2447);
      int Day = (int)(L - (long)((2447 * J) / 80));
      L = (long)(J / 11);
      int Month = (int)(J + 2 - 12 * L);
      int Year = (int)(100 * (N - 49) + I + L);
  
      return new DateTime(Year, Month, Day);
  }
  </code></pre>