public abstract class ParseTime
extends java.lang.Object
Constructor and Description |
---|
ParseTime() |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.format.DateTimeFormatter |
forStrptimePattern(java.lang.String pattern)
Factory to create a formatter from a strptime pattern string.
|
static org.joda.time.DateTimeZone |
getTimezone() |
static boolean |
isTime(BufferedString str) |
static java.lang.String |
listTimezones() |
static void |
setTimezone(java.lang.String tz) |
public static boolean isTime(BufferedString str)
public static void setTimezone(java.lang.String tz)
public static org.joda.time.DateTimeZone getTimezone()
public static java.lang.String listTimezones()
public static org.joda.time.format.DateTimeFormatter forStrptimePattern(java.lang.String pattern)
The format may contain locale specific output, and this will change as you change the locale of the formatter. Call DateTimeFormatter.withLocale(Locale) to switch the locale. For example:
DateTimeFormat.forPattern(pattern).withLocale(Locale.FRANCE).print(dt);
pattern
- pattern specificationjava.lang.IllegalArgumentException
- if the pattern is invalid