Java Minute Get getWholeMinutes(double coordinate)

Here you can find the source of getWholeMinutes(double coordinate)

Description

Gets the minutes component from a decimal coordinate.

License

Open Source License

Parameter

Parameter Description
coordinate The decimal coordinate.

Return

The minutes.

Declaration


public static int getWholeMinutes(double coordinate) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from  w  w  w.java2 s  .  com*/
    * <p>Gets the minutes component from a decimal coordinate.</p>
    * @param coordinate The decimal coordinate.
    * @return The minutes.
    */

    public static int getWholeMinutes(double coordinate) {
        return (int) (((coordinate - getWholeDegrees(coordinate)) * 60));
    }

    /**
    * <p>Gets the integer component from a decimal coordinate.</p>
    * @param coordinate The decimal coordinate.
    * @return The degrees.
    */

    public static int getWholeDegrees(double coordinate) {
        return (int) coordinate;
    }
}

Related

  1. getSecondsByMinutes(int minutes)
  2. getTimeFromMinutes(final int minutes)
  3. getTimeInEpoch(int offSetInMinutes)
  4. getTimeInMinuteResolution(long timeMillis)
  5. getTimeInMinutes(final String duration)