Package org.keycloak.services.util
Class DateUtil
java.lang.Object
org.keycloak.services.util.DateUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
toEndOfDay
(String date) Parses a string timestamp or date to an Epoc timestamp; if the date is a ISO-8601 extended local date format, the time at the end of the day is returned.static long
toStartOfDay
(String date) Parses a string timestamp or date to an Epoc timestamp; if the date is a ISO-8601 extended local date format, the time at the beginning of the day is returned.
-
Constructor Details
-
DateUtil
public DateUtil()
-
-
Method Details
-
toStartOfDay
Parses a string timestamp or date to an Epoc timestamp; if the date is a ISO-8601 extended local date format, the time at the beginning of the day is returned.- Parameters:
date
- the date in ISO-8601 extended local date format- Returns:
- Epoch time for the start of the day
-
toEndOfDay
Parses a string timestamp or date to an Epoc timestamp; if the date is a ISO-8601 extended local date format, the time at the end of the day is returned.- Parameters:
date
- the date in ISO-8601 extended local date format- Returns:
- Epoch time for the start of the day
-