- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
public class Uptime {
private short minute;
private byte hour;
private short day;
private short month;
private short year;
public Uptime() {
ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
executorService.scheduleAtFixedRate(() -> {
minute++;
if(minute >= 61) {
hour++;
minute = 0;
if(hour >= 25) {
day++;
hour = 0;
if(day >= 31) {
month++;
day = 0;
if(month >= 13) {
year++;
month = 0;
}
}
}
}
}, 1, 1, TimeUnit.MINUTES);
}
public short getMinute() {
return minute;
}
public byte getHour() {
return hour;
}
public short getDay() {
return day;
}
public short getMonth() {
return month;
}
public short getYear() {
return year;
}
}
guest8 20.08.2019 17:08 # −999
unicorn 21.08.2019 07:27 # 0
guest8 24.08.2019 01:41 # −999
codershitter 29.09.2019 17:09 # 0
nemyx_pycu4 20.08.2019 17:23 # −100
nemyx_pycu4 20.08.2019 17:23 # −100
nemyx_pycu4 20.08.2019 17:23 # −101
nemyx_pycu4 20.08.2019 17:23 # −101
nemyx_pycu4 20.08.2019 17:23 # −99
nemyx_pycu4 20.08.2019 17:24 # −100
unicorn 21.08.2019 07:59 # 0
codershitter 29.09.2019 17:11 # 0
https://www.youtube.com/watch?v=nZVBEWQ4E-E
hormand 29.09.2019 17:13 # −99
unicorn 20.10.2019 02:41 # 0
rOqpPEH 29.09.2019 17:14 # −102
CKuJlJloBou_nemyx 20.08.2019 18:31 # 0
guest8 20.08.2019 20:10 # −999
unicorn 21.08.2019 08:26 # 0
petux 21.08.2019 17:27 # 0
codershitter 29.09.2019 17:13 # 0
guest8 21.08.2019 20:46 # −999
HEMECTHblu_nemyx 21.08.2019 20:53 # 0
guest8 21.08.2019 21:59 # −999
guest8 21.08.2019 22:10 # −999
homo 23.08.2019 16:46 # 0
CKuJlJloBou_nemyx 23.08.2019 23:28 # 0
codershitter 29.09.2019 17:14 # 0
rOqpPEH 29.09.2019 17:15 # −102
codershitter 29.09.2019 17:14 # 0
guest8 22.08.2019 19:06 # −999
guest8 23.08.2019 23:45 # −999
guest8 24.08.2019 20:03 # −999
HEMECTHblu_nemyx 24.08.2019 20:24 # 0
codershitter 29.09.2019 17:17 # 0
cmepmop 29.09.2019 18:49 # 0