Here you can find the source of isLessThanMinute(final long timeInMillis)
Parameter | Description |
---|---|
timeInMillis | a parameter |
true
when less than a minute, otherwise false
public static final boolean isLessThanMinute(final long timeInMillis)
//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; } }