|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codeforamerica.open311.internals.parsing.DateParser
public class DateParser
Provides operations to handle dates. Check the GeoReport wiki for more information.
| Constructor Summary | |
|---|---|
DateParser()
|
|
| Method Summary | |
|---|---|
Date |
parseDate(String rawDate)
Parses a string representing a date. |
String |
printDate(Date date)
Prints a date. |
DateParser |
withTimezone(org.joda.time.DateTimeZone timeZone)
Sets the timezone of the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateParser()
| Method Detail |
|---|
public DateParser withTimezone(org.joda.time.DateTimeZone timeZone)
timeZone - A valid timezone.public Date parseDate(String rawDate)
rawDate - ISO 8601 is the preferred format. Check
dateFormats to check all the accepted formats.
public String printDate(Date date)
dateFormats to check all the accepted formats.
date - Date to print.
null if it didn't match any format.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||