Java Time Format formatVideoRecordingTime(long t)

Here you can find the source of formatVideoRecordingTime(long t)

Description

format Video Recording Time

License

Apache License

Declaration

public static String formatVideoRecordingTime(long t) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String formatVideoRecordingTime(long t) {
        int m = (int) t / 60;
        int s = (int) t - m * 60;
        return String.format("%02d:%02d", m, s);
    }/*from  ww  w . jav  a  2 s  . c  om*/
}

Related

  1. formatTimeToString(long seconds)
  2. formatTimeUnits(double nanos)
  3. formatTimeZoneID(String id)
  4. formatToTimeStr(String str)
  5. formatUptime(long uptime)
  6. getCalendarByDateTime(int dateTime, String dateFormat)
  7. getCurDateTime(String formatStr)
  8. getCurDateTimeFormat(String Format)
  9. getCurrDatetimeWithDbFormat()