long seconds = System.currentTimeMillis()/1000; long second = seconds%60; long minute = seconds/60%60; long hour = seconds/3600%24; textView.setText(hour+":"+minute+":"+second); On computer 20.00, the output will be:
15: 0: 0
The problem is that the clock is 5 hours behind. What am I doing wrong? Through the calendar it is not necessary, I need to figure out exactly this. I understand this because of the time zone?
System.currentTimeMillis()returns? - Roman