Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. long days = (millis / (60*60*24*1000)) % 365;
  2.  
  3. Calendar calendar = Calendar.getInstance();
  4. calendar.setTimeInMillis(millis);
  5. int mDay = calendar.get(Calendar.DAY_OF_MONTH);
  6.  
  7. int days = TimeUnit.MILLISECONDS.toDays(miliseconds);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement