Package com.sinch.sdk.core.utils
Class DateUtil
- java.lang.Object
-
- com.sinch.sdk.core.utils.DateUtil
-
public class DateUtil extends Object
Utility class for Date
-
-
Constructor Summary
Constructors Constructor Description DateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstanttoInstant(OffsetDateTime value)Convert an OffsetDateTime to Instant with null value protection
-
-
-
Method Detail
-
toInstant
public static Instant toInstant(OffsetDateTime value)
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
-
-