org.thymeleaf.extras.java8time.util

## Class TemporalObjects

- Object
- - org.thymeleaf.extras.java8time.util.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 Summary

    Constructors
    Constructor and Description
    `TemporalObjects()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static DateTimeFormatter` | `formatterFor(Object target, Locale locale)`
    `static TemporalAccessor` | `temporal(Object target)`
    `static ChronoZonedDateTime` | `zonedTime(Object target, ZoneId defaultZoneId)` Creates a Temporal object filling the missing fields of the provided time with default values.

    - ### Methods inherited from class Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TemporalObjects

          public TemporalObjects()

  - ### Method Detail

    - #### formatterFor

          public static DateTimeFormatter formatterFor(Object target,
                                                       Locale locale)

    - #### 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

    - #### temporal

          public static TemporalAccessor temporal(Object target)

Copyright © 2017 The THYMELEAF team. All rights reserved.