//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
我有“timeStampCloud”和“timestampToDB”,但是如何将这两个时间戳记起来呢?如果设备时区发生变化,将会发生什么。请帮忙!!:)