public interface IJEMHVelocityDateUtil
Modifier and Type | Method and Description |
---|---|
Date |
createDate(long t) |
LocalDate |
createLocalDate()
allows a LocalDate to be created for now()
|
LocalDateTime |
createLocalDateTime()
allows a LocalDateTime to be created for now()
|
DateTimeFormatter |
getFormatter(String pattern)
Get a
DateTimeFormatter for the specified date pattern |
ZonedDateTime |
getZonedDateTime(String value,
String pattern)
Get a
ZonedDateTime by parsing a value with a given pattern. |
ZoneId |
getZoneId(String id)
Get the
ZoneId for the specified location i.e. |
Date createDate(long t)
ZonedDateTime getZonedDateTime(String value, String pattern)
ZonedDateTime
by parsing a value with a given pattern.value
- the date/time value to be parsedpattern
- the DateTimeFormatter
format pattern to be used during parsingZonedDateTime
LocalDate createLocalDate()
LocalDateTime createLocalDateTime()
DateTimeFormatter getFormatter(String pattern)
DateTimeFormatter
for the specified date patternpattern
- the pattern to which you want to convert the date toDateTimeFormatter
with the patternCopyright © 2008–2022 The Plugin People. All rights reserved.