Package com.sinch.sdk.core.utils
Class DateUtil
java.lang.Object
com.sinch.sdk.core.utils.DateUtil
Utility class for Date
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanttoInstant(OffsetDateTime value) Convert an OffsetDateTime to Instant with null value protection
-
Constructor Details
-
DateUtil
public DateUtil()
-
-
Method Details
-
toInstant
Convert an OffsetDateTime to Instant with null value protection- Parameters:
value- Value to be converted- Returns:
- Converted value to Instant or null if source value was null
- Since:
- 1.0
-