Interface DateAndTimeUtils
public interface DateAndTimeUtils
Utility interface giving access to methods working on date and times like Instants,
LocalDateTime, ...
-
Method Summary
Static Methods Modifier and Type Method Description static io.vavr.control.Option<java.time.LocalDateTime>
fromInstant(java.time.Instant instant)
This method transform a JavaInstant
to a JavaLocalDateTime
using the system default time zone and wrap it into a VavrOption
-
Method Details
-
fromInstant
static io.vavr.control.Option<java.time.LocalDateTime> fromInstant(java.time.Instant instant)This method transform a JavaInstant
to a JavaLocalDateTime
using the system default time zone and wrap it into a VavrOption
- Parameters:
instant
- The instant to transform to a LocalDateTime- Returns:
- an Option containing the LocalDateTime if it's ok, an empty Option otherwise
-