public static String prettyTime(long t){
		StringBuffer sb = new StringBuffer();
		if (t < 60) { // x sec
			sb.append(t).append(sec);
			return sb.toString();
		}
		if (t < 3600) { // x min y sec
			sb.append(t/60).append(min).append(" ");
			t = t % 60;
			if (t > 0) {
				//if (t<10) sb.append("0");
				sb.append(t).append(sec);
			}

			return sb.toString();
		}
		if (t < 86400) {// x h y min
			sb.append(t/3600).append(hour).append(" ");
			t = t % 3600;
			if (t/60 > 0) {
				//if (t<10) sb.append("0");
				sb.append(t/60).append(min);
			}

			return sb.toString();
		}
		// x days y hours
		sb.append(t/86400).append(day).append(" ");
		t = t % 86400;
		if (t/3600 > 0) {
			sb.append(t/3600).append(hour);
		}
		
		return sb.toString();
	}