Constructor and Description |
---|
LocalDateFactory() |
Modifier and Type | Method and Description |
---|---|
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).
|
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 convertjava.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 TimeZonepublic static LocalDate fromIsoBasicFormat(String isoDate)
isoDate
- an "ISO Basic" formatted dateCopyright © 2002-2017 Atlassian. All Rights Reserved.