Class TemporalObjects


  • public final class TemporalObjects
    extends Object
    Utilities for the creation of Java 8 Time objects.
    Since:
    2.1.1
    Author:
    José Miguel Samper
    • Constructor Detail

      • TemporalObjects

        public TemporalObjects()
    • Method Detail

      • zonedTime

        public static ChronoZonedDateTime zonedTime​(Object target,
                                                    ZoneId defaultZoneId)
        Creates a Temporal object filling the missing fields of the provided time with default values.
        Parameters:
        target - the temporal object to be converted
        defaultZoneId - the default value for ZoneId
        Returns:
        a Temporal object