Java Milli Second to Minute isLessThanMinute(final long timeInMillis)

Here you can find the source of isLessThanMinute(final long timeInMillis)

Description

Checks if a number of milliseconds is less than a minute or not.

License

Open Source License

Parameter

Parameter Description
timeInMillis a parameter

Return

true when less than a minute, otherwise false

Declaration

public static final boolean isLessThanMinute(final long timeInMillis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static final long NUMBER_OF_MILLISECONDS_LESS_THAN_MINUTE = 59999;

    /**//  w  w w .j av  a2s  .  c  om
     * Checks if a number of milliseconds is less than a minute or not.
     * @param timeInMillis
     * @return <code>true</code> when less than a minute, otherwise <code>false</code>
     */
    public static final boolean isLessThanMinute(final long timeInMillis) {
        return timeInMillis >= 0 && timeInMillis < NUMBER_OF_MILLISECONDS_LESS_THAN_MINUTE;
    }
}

Related

  1. _toBeginOfMinute(long millis)
  2. asHoursMinutesSeconds(long milliseconds)
  3. daysHoursMinutes(long p_milliseconds)
  4. daysHoursMinutesToMillis(String expression)
  5. hoursMinutes(long p_milliseconds)
  6. isSameMinuteOfMillis(final long ms1, final long ms2)
  7. millis2minutes(long millis)
  8. millisecondsToMinutes(long ms)
  9. millisecondToMinute(Long millisecond)