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 Java Instant to a Java LocalDateTime using the system default time zone and wrap it into a Vavr Option
  • Method Details

    • fromInstant

      static io.vavr.control.Option<java.time.LocalDateTime> fromInstant​(java.time.Instant instant)
      This method transform a Java Instant to a Java LocalDateTime using the system default time zone and wrap it into a Vavr Option
      Parameters:
      instant - The instant to transform to a LocalDateTime
      Returns:
      an Option containing the LocalDateTime if it's ok, an empty Option otherwise