Here you can find the source of minutes()
public static int minutes()
//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); } }