Java Time Format formatMusicTime(int time)

Here you can find the source of formatMusicTime(int time)

Description

format Music Time

License

Open Source License

Declaration

public static String formatMusicTime(int time) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String formatMusicTime(int time) {
        String string;/* ww w .  j a va2s.  c  om*/
        if (time < 10) {
            string = "0" + time;
        } else {
            string = String.valueOf(time);
        }
        return string;
    }
}

Related

  1. formatInformalTime(final String minuteRoundedName, final String minuteRoundingToken, final String informalHourName)
  2. formatMeasures(final int quartersPerMeasure, final double time, final int startOffset)
  3. formatMicroSpan(long time)
  4. formatMili(long timeDelta)
  5. formatMs(long elapsedTime)
  6. formatNanosec(long timeNanosec)
  7. formatPeroid(long time)
  8. formatRemainingTime(float seccounds)
  9. formatRuntime(long runtime)