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 DatecreateDate(long t)LocalDatecreateLocalDate()allows a LocalDate to be created for now()LocalDateTimecreateLocalDateTime()allows a LocalDateTime to be created for now()DateTimeFormattergetFormatter(String pattern)Get aDateTimeFormatterfor the specified date patternZonedDateTimegetZonedDateTime(String value, String pattern)Get aZonedDateTimeby parsing a value with a given pattern.ZoneIdgetZoneId(String id)Get theZoneIdfor the specified location i.e.
-
-
-
Method Detail
-
createDate
Date createDate(long t)
-
getZonedDateTime
ZonedDateTime getZonedDateTime(String value, String pattern)
Get aZonedDateTimeby parsing a value with a given pattern.- Parameters:
value- the date/time value to be parsedpattern- theDateTimeFormatterformat 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 aDateTimeFormatterfor the specified date pattern- Parameters:
pattern- the pattern to which you want to convert the date to- Returns:
- the
DateTimeFormatterwith the pattern
-
-