I am looking for to calculate the time difference between two calendar dates and need the result difference in minutes. Below is what I am trying but it says: can't apply - operator. My page.getLastModified().getTime()
gives me Calendar object. Any idea how can I achieve this.
long lastModified = page.getLastModified().getTime() - Calendar.getInstance().getTime()
;