public final class TimeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INSTANT_FRACTIONAL_DIGITS_FORMAT
in case of Instant values which will be stored as String in JSON, it is required to keep the fractional
digits even if the nano value of Instant is set to zero @see
https://stackoverflow.com/questions/33025988/java-time-iso-date-format-with-fixed-millis-digits-in-java-8-and-later
|
static String |
XSD_DATE_TIME_FORMAT
the fully qualified xsd-datetime definition
|
| Constructor and Description |
|---|
TimeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Instant |
parseDateTime(String dateTime)
this method will try to parse the date time send in a scim resource request.
|
public static final int DEFAULT_INSTANT_FRACTIONAL_DIGITS_FORMAT
public static final String XSD_DATE_TIME_FORMAT
public static Instant parseDateTime(String dateTime)
dateTime - the date time representation that should be parsedInvalidDateTimeRepresentationException - if the given string does not apply to the xsd:dateTime
definitionCopyright © 2020. All rights reserved.