Package org.thymeleaf.util.temporal
Class TemporalObjects
Object
org.thymeleaf.util.temporal.TemporalObjects
Utilities for the creation of Java 8 Time objects.
- Since:
- 3.1.0
- Author:
- José Miguel Samper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeFormatter
formatterFor
(Object target, Locale locale) static TemporalAccessor
static ChronoZonedDateTime
Creates a Temporal object filling the missing fields of the provided time with default values.
-
Constructor Details
-
TemporalObjects
public TemporalObjects()
-
-
Method Details
-
formatterFor
-
zonedTime
Creates a Temporal object filling the missing fields of the provided time with default values.- Parameters:
target
- the temporal object to be converteddefaultZoneId
- the default value for ZoneId- Returns:
- a Temporal object
-
temporal
-