Lines Matching refs:seconds
38 int seconds = (int) (millis / 1000);
39 int minutes = seconds / 60;
40 seconds = seconds % 60;
42 timeLabel.setText(String.format("%d:%02d", minutes, seconds));
56 find the clock sometimes not updating for close to 2 seconds, or
64 uses a quick hack to format the seconds nicely as you will see.</p>
105 int seconds = (int) (millis / 1000);
106 int minutes = seconds / 60;
107 seconds = seconds % 60;
109 if (seconds < 10) {
110 mTimeLabel.setText("" + minutes + ":0" + seconds);
112 mTimeLabel.setText("" + minutes + ":" + seconds);
116 start + (((minutes * 60) + seconds + 1) * 1000));
123 10:06 instead of 10:6 when the seconds modulo 60 are less than 10
128 + (((minutes * 60) + seconds + 1) * 1000) does this.</p>