title: Cannot resolve method setToNow() on Android Studio
body: <p>I am getting an error Cannot resolve method <strong>setToNow()</strong>, <strong>getJulianDay</strong> on Android Studio. I think i have imported the correct Classes.</p>
  
  <p><img src="https://i.stack.imgur.com/r1arD.png" alt="enter image description here"></p>
  
  <p><strong>Imports</strong></p>
  
  <pre><code>import android.net.Uri;
  import android.os.AsyncTask;
  import android.util.Log;
  
  import org.json.JSONArray;
  import org.json.JSONException;
  import org.json.JSONObject;
  import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  import java.net.HttpURLConnection;
  import java.net.URL;
  import java.sql.Time;
  import java.text.SimpleDateFormat;
  </code></pre>
  
  <hr>
  
  <pre><code>Time dayTime = new Time();
  dayTime.setToNow();
  int julianStartDay = Time.getJulianDay(System.currentTimeMillis(), dayTime.gmtoff);
  </code></pre>