public final class DateUtil extends Object
Modifier and Type | Method and Description |
---|---|
static DateTimeFormatter |
getDateTimeFormatter(boolean milliseconds) |
static boolean |
verifyCreated(Instant created,
int timeToLive,
int futureTimeToLive)
Return true if the "Created" value is before the current time minus the timeToLive
argument, and if the Created value is not "in the future".
|
public static boolean verifyCreated(Instant created, int timeToLive, int futureTimeToLive)
timeToLive
- the value in seconds for the validity of the Created timefutureTimeToLive
- the value in seconds for the future validity of the Created timepublic static DateTimeFormatter getDateTimeFormatter(boolean milliseconds)
Copyright © 2021 JBoss by Red Hat. All rights reserved.