public abstract class ParseTime
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
TIME_PARSE |
Constructor and Description |
---|
ParseTime() |
Modifier and Type | Method and Description |
---|---|
static long |
attemptTimeParse(ValueString str) |
static long |
attemptUUIDParse0(ValueString str) |
static long |
attemptUUIDParse1(ValueString str) |
static long |
badUUID(ValueString str) |
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 |
isDateTime(ValueString str) |
static boolean |
isUUID(ValueString str) |
static java.lang.String |
listTimezones() |
static void |
setTimezone(java.lang.String tz) |
public static boolean isDateTime(ValueString str)
public static long attemptTimeParse(ValueString 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 invalidpublic static final boolean isUUID(ValueString str)
public static long attemptUUIDParse0(ValueString str)
public static long attemptUUIDParse1(ValueString str)
public static long badUUID(ValueString str)