org.italiangrid.voms.util
public class TimeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkTimeInRangeWithSkew(Date timeToCheck,
Date startDate,
Date endDate,
int skewInMinutes)
Checks that a date falls in the interval allowing for a certain clock skew
expressed in minutes.
|
public static boolean checkTimeInRangeWithSkew(Date timeToCheck, Date startDate, Date endDate, int skewInMinutes)
timeToCheck
- the time to be checkedstartDate
- the start date of the time rangeendDate
- the end date of the time rangeskewInMinutes
- the clock skew in minutes to take into accounttrue
, if the time is in the given range,
false
otherwiseIllegalArgumentException
- if passed an illegal time rangeCopyright © 2014. All rights reserved.