Id: 568680; Nick: n/a; Timestamp: 2009-02-02 13:55:07; Pasted as: Java
Description: n/a
1
2
3
4
5
6
7
8
9
10
11
public String getTimeFormatted() {
    long miliSeconds = getTime();
    if(miliSeconds>-1) {
      long seconds = miliSeconds/1000; 
      return String.format("%02dh %02dm %02ds", seconds/3600, (seconds%3600)/60, (seconds%60));
    }
    else {
      return "N/A";
    }
  }
 
Options: New, Download,
;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About) - Highlighted with GeSHi
Nothing to see here.