title: How to convert Google API DateTime timestamp between Cloud and local time
body: <pre><code>        //Push Insert a Task:
    Calendar calendar = Calendar.getInstance();
    long timestampToDB = calendar.getTimeInMillis();
      com.google.api.services.tasks.model.Task newTask = new com.google.api.services.tasks.model.Task();
      newTask.setTitle("New Task");
      DateTime timeStampLocale = new DateTime(calendar.getTime(), calendar.getTimeZone());
      newTask.setUpdated(timeStampLocale);
  
      //Pull the Task:
      com.google.api.services.tasks.model.Task theTask = Tasks.geTaskById(String taskId);
      DateTime timeStampCloud = theTask.getUpdated();
  
      //Compare Timestamp:
      //How to compare the two timestamp, in order to see which timestamp one is latest
  </code></pre>
  
  <p>I had "timeStampCloud" and "timestampToDB", but how to campare the two timestamp?
  if the device timezone changed, what it will be going to happen. Please help!! :)  </p>