Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int set = parseInt(this.userHandler.getBanTime(name));
- int time = (int) System.currentTimeMillis() / 1000;
- int diff = (set + 604800) - time;
- int d = diff / 86400 % 7;
- int h = diff / 3600 % 24;
- int m = diff / 60 % 60;
- int s = diff % 60;
- String msg = (d > 0 ? d + " dager, " : "") +
- (h > 0 ? h + " timer, " : "") +
- (m > 0 ? m + " minutter, " : "") +
- s + " sekunder igjen.";
Add Comment
Please, Sign In to add comment