Answer the question
In order to leave comments, you need to log in
Why doesn't Calendar setTimeInMillis work?
Here is the code:
Calendar c = Calendar.getInstance();
Log.v("ddddd", c.getTime().toString());
c.setTimeInMillis((System.currentTimeMillis() + 86400));
Log.v("ddddd", c.getTime().toString());
Answer the question
In order to leave comments, you need to log in
Check again because everything is correct. For example, it displays different dates for me.
Thu Jun 25 21:04:29 AZST 2015
Thu Jun 25 21:05:55 AZST 2015
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question