Class DateTimeUtil
java.lang.Object
es.kukenan.smartfi.microservice.backoffice.dtos.core.util.DateTimeUtil
Fides utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DateTimeFormatterFides date TIME format.private static final StringEmpty date token. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDategetLocalDate(String str) Return theLocalDatecorresponding to the given date string in Fides DB format.static ZonedDateTimegetZoneDateTime(String str) Return theZonedDateTimecorresponding to the given date string in Fides DB format.
-
Field Details
-
DATETIME_FORMAT
Fides date TIME format. -
EMPTY_DATE
Empty date token.- See Also:
-
-
Constructor Details
-
DateTimeUtil
public DateTimeUtil()
-
-
Method Details
-
getZoneDateTime
Return theZonedDateTimecorresponding to the given date string in Fides DB format.- Parameters:
str- the given date string in Fides DB format.- Returns:
- the
ZonedDateTime.
-
getLocalDate
Return theLocalDatecorresponding to the given date string in Fides DB format.- Parameters:
str- the given date string in Fides DB format.- Returns:
- the
LocalDate.
-