Java Minute Get currentTimeMinutes()

Here you can find the source of currentTimeMinutes()

Description

current Time Minutes

License

LGPL

Declaration

public static long currentTimeMinutes() 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    private static int timeZoneOffset = 0;

    public static long currentTimeMinutes() {
        return currentTimeSeconds() / 60L;
    }/* ww  w  .j  a  va2  s.co  m*/

    public static long currentTimeSeconds() {
        return currentTimeMillis() / 1000L;
    }

    public static long currentTimeMillis(boolean timezone) {
        if (timezone)
            return System.currentTimeMillis() + (long) timeZoneOffset;
        else
            return System.currentTimeMillis();
    }

    public static long currentTimeMillis() {
        return System.currentTimeMillis() + (long) timeZoneOffset;
    }

    public static long currentTimeMillis(long time) {
        return time + (long) timeZoneOffset;
    }
}

Related

  1. fromMinutes(long seed)
  2. getCompleteDayAsHourMinuteString()
  3. getElapsedTimeHoursMinutesFromMilliseconds(long milliseconds)
  4. getFiveMinuteCronByHostId(long hostId)