public final class TemporalObjects extends Object
Constructor and Description |
---|
TemporalObjects() |
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.
|
public static DateTimeFormatter formatterFor(Object target, Locale locale)
public static ChronoZonedDateTime zonedTime(Object target, ZoneId defaultZoneId)
target
- the temporal object to be converteddefaultZoneId
- the default value for ZoneIdpublic static TemporalAccessor temporal(Object target)
Copyright © 2017 The THYMELEAF team. All rights reserved.