title: Time getJulianDay() deprecated which alternatives to convert date to julian and vice versa?
body: <p>I want to use GregorianCalendar instead of Time class, how android documentation suggest, but how manage julian day for store a date as a int in my sqlLite db?</p>
  
  <p>How can i convert this code? </p>
  
  <pre><code>   public static long normalizeDate(long startDate) {
      // normalize the start date to the beginning of the (UTC) day
      Time time = new Time();
      time.set(startDate);
      int julianDay = Time.getJulianDay(startDate, time.gmtoff);
      return time.setJulianDay(julianDay);
  }
  </code></pre>
  
  <p>And when i query a row how can get the normal date by julian day? </p>