Java Minute Get getNumberOfMinutes(long milliseconds)

Here you can find the source of getNumberOfMinutes(long milliseconds)

Description

get Number Of Minutes

License

Open Source License

Declaration

public static String getNumberOfMinutes(long milliseconds) 

Method Source Code

//package com.java2s;

public class Main {
    public static final long MILLISECONDS_IN_A_MINUTE = 60000;

    public static String getNumberOfMinutes(long milliseconds) {
        long minutes = milliseconds / MILLISECONDS_IN_A_MINUTE;

        long remainder = milliseconds % MILLISECONDS_IN_A_MINUTE;

        return minutes + " minutes, " + (remainder / 1000) + " seconds";
    }/*  w w  w. j a  v  a  2s  .  c o m*/
}

Related

  1. getMinutesString(long time)
  2. getMinuteStart(long ts)
  3. getMinutesText(long minutes)
  4. getMinutesTime(long msTime)
  5. getNextMinute(Integer minute)
  6. getOffMinutes()
  7. getOffMinutes(long l)
  8. getOffMinutes(long timestamp)
  9. getRawMinutes(int m)