Java Minute Convert minutesToShortTime(int minutes)

Here you can find the source of minutesToShortTime(int minutes)

Description

minutes To Short Time

License

Apache License

Declaration

public static String minutesToShortTime(int minutes) 

Method Source Code

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

public class Main {

    public static String minutesToShortTime(int minutes) {
        StringBuilder sb = new StringBuilder(5);
        int h = minutes / 60;
        int m = minutes % 60;
        if (h < 10)
            sb.append('0');
        sb.append(h);/*from   ww w . ja v  a  2  s  .  c  om*/
        sb.append(':');
        if (m < 10)
            sb.append('0');
        sb.append(m);
        return sb.toString();
    }
}

Related

  1. minutesToMilliseconds(final int val)
  2. minutesToMilliseconds(int minutes)
  3. minutesToSamples(int sampleRate, int minutes)
  4. MinutesToSeconds(long minutes)
  5. minutesToSecs(long minutes)
  6. minutesToString(Integer minutes)
  7. minutesToTicks(double x)
  8. minutesToTicks(int minutes)
  9. minutesToTime(int inTime)