Package com.javahollic.jira.emh.api.util
Interface IJEMHVelocityDateUtil
-
public interface IJEMHVelocityDateUtil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 aDateTimeFormatter
for the specified date patternZonedDateTime
getZonedDateTime(String value, String pattern)
Get aZonedDateTime
by parsing a value with a given pattern.ZoneId
getZoneId(String id)
Get theZoneId
for the specified location i.e.
-
-
-
Method Detail
-
createDate
Date createDate(long t)
-
getZonedDateTime
ZonedDateTime getZonedDateTime(String value, String pattern)
Get aZonedDateTime
by parsing a value with a given pattern.- Parameters:
value
- the date/time value to be parsedpattern
- theDateTimeFormatter
format pattern to be used during parsing- Returns:
- the parsed
ZonedDateTime
-
createLocalDate
LocalDate createLocalDate()
allows a LocalDate to be created for now()- Returns:
- LocalDate.now()
-
createLocalDateTime
LocalDateTime createLocalDateTime()
allows a LocalDateTime to be created for now()- Returns:
- LocalDateTime.now()
-
getFormatter
DateTimeFormatter getFormatter(String pattern)
Get aDateTimeFormatter
for the specified date pattern- Parameters:
pattern
- the pattern to which you want to convert the date to- Returns:
- the
DateTimeFormatter
with the pattern
-
-