Package com.javahollic.jira.emh.api.util
Interface IJEMHVelocityDateUtil
- 
 public interface IJEMHVelocityDateUtil
- 
- 
Method SummaryAll 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- 
createDateDate createDate(long t) 
 - 
getZonedDateTimeZonedDateTime getZonedDateTime(String value, String pattern) Get aZonedDateTimeby parsing a value with a given pattern.- Parameters:
- value- the date/time value to be parsed
- pattern- the- DateTimeFormatterformat pattern to be used during parsing
- Returns:
- the parsed ZonedDateTime
 
 - 
createLocalDateLocalDate createLocalDate() allows a LocalDate to be created for now()- Returns:
- LocalDate.now()
 
 - 
createLocalDateTimeLocalDateTime createLocalDateTime() allows a LocalDateTime to be created for now()- Returns:
- LocalDateTime.now()
 
 - 
getFormatterDateTimeFormatter 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
 
 
- 
 
-