Java Minute Convert minutesToString(Integer minutes)

Here you can find the source of minutesToString(Integer minutes)

Description

minutes To String

License

Open Source License

Declaration

public static String minutesToString(Integer minutes) 

Method Source Code

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

public class Main {
    private static final String timeFormat = "%sh%sm";

    public static String minutesToString(Integer minutes) {
        assert (minutes != null);

        int hours = minutes / 60;
        minutes = minutes % 60;//from www . java2  s.c  o m

        return String.format(timeFormat, hours, minutes);
    }
}

Related

  1. minutesToMilliseconds(int minutes)
  2. minutesToSamples(int sampleRate, int minutes)
  3. MinutesToSeconds(long minutes)
  4. minutesToSecs(long minutes)
  5. minutesToShortTime(int minutes)
  6. minutesToTicks(double x)
  7. minutesToTicks(int minutes)
  8. minutesToTime(int inTime)
  9. minuteToMillis(long minute)