Java Minute minutes()

Here you can find the source of minutes()

Description

How many minutes on

License

Creative Commons License

Return

Minutes, floored

Declaration

public static int minutes() 

Method Source Code

//package com.java2s;
/**/*from   w  w w .java2 s . c  o m*/
 * This file was created for Bookshelf
 *
 * Bookshelf is licensed under the
 * Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License:
 * http://creativecommons.org/licenses/by-nc-sa/4.0/
 *
 * @author Paul Davis - pauljoda
 * @since 2/14/2017
 */

public class Main {
    public static long tick = 0;

    /**
     * How many minutes on
     *
     * @return Minutes, floored
     */
    public static int minutes() {
        return (int) Math.floor(seconds() / 60);
    }

    /**
     * The seconds online
     *
     * @return How many seconds on, floored
     */
    public static int seconds() {
        return (int) Math.floor(tick / 20);
    }
}

Related

  1. isValidMinute(final int min)
  2. isWholeMinute(int seconds)
  3. minute(double serial_number)
  4. MINUTE(int min)
  5. minute2hour(int minute)
  6. minutes(int m)
  7. minutes(int minutes)
  8. minutes(int minutes)
  9. minutes(int num)