|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.datetime.LocalDateFactory
public class LocalDateFactory
Used for creating LocalDate
objects.
Constructor Summary | |
---|---|
LocalDateFactory()
|
Method Summary | |
---|---|
static LocalDate |
from(Date date)
Constructs a new LocalDate from the given java.util.Date by interpreting the Date in the system (JVM) timezone. |
static LocalDate |
fromIsoBasicFormat(String isoDate)
Turns an "ISO Basic" formatted date (ie YYYYMMDD) into a LocalDate. |
static LocalDate |
getLocalDate(Date date,
TimeZone timeZone)
Returns the LocalDate for a point in time in a given TimeZone. |
static String |
toIsoBasic(LocalDate localDate)
Formats the given LocalDate in "ISO Basic" format (ie YYYYMMDD). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalDateFactory()
Method Detail |
---|
public static LocalDate from(Date date)
java.util.Date
by interpreting the Date in the system (JVM) timezone.
NB will return null output for null input
date
- the date to convert
java.util.Date
by interpreting the Date in the system (JVM) timezone. (null output for null input)public static LocalDate getLocalDate(Date date, TimeZone timeZone)
NB will return null output for null input
date
- The point in timetimeZone
- The TimeZone
public static LocalDate fromIsoBasicFormat(String isoDate)
isoDate
- an "ISO Basic" formatted date
public static String toIsoBasic(LocalDate localDate)
localDate
- the date to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |