Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. public class Frame_1_5_4 {
  3.  
  4. public static void main(String[] args) {
  5. long timeAmount = System.currentTimeMillis() / 1000;
  6. long partS = timeAmount % 60;
  7. long partM = (timeAmount / 60) % 60;
  8. long partH = ((timeAmount / 60) /60 ) % 24;
  9. long partD = ((timeAmount / 60) /60 ) / 24;
  10. System.out.println(partD+":"+partH+":"+partM+":"+partS);
  11.  
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement