Class DateUtil
java.lang.Object
com.atlassian.plugin.servlet.util.date.DateUtil
Class responsible for handling processes related to dates.
- Since:
- 4.1.18
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDateTimedefaultIfNull(Date date, LocalDateTime defaultValue) static Optional<LocalDateTime> localDateTimeOf(Date date)
-
Method Details
-
localDateTimeOf
- Parameters:
date- The date to be converted.- Returns:
- The object containing the converted date.
-
defaultIfNull
- Parameters:
date- The date to be converted.defaultValue- The default value if the date is null.- Returns:
- The object containing the converted date.
-