public abstract class ParseTime
extends java.lang.Object
Constructor and Description |
---|
ParseTime() |
Modifier and Type | Method and Description |
---|---|
static long |
attemptTimeParse(BufferedString 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 |
isTime(BufferedString str) |
static java.lang.String |
listTimezones() |
static void |
setTimezone(java.lang.String tz)
Set the Time Zone on the H2O Cloud
|
public static boolean isTime(BufferedString str)
public static long attemptTimeParse(BufferedString str)
public static void setTimezone(java.lang.String tz)
tz
- Timezonejava.lang.IllegalArgumentException
- if the timezone(tz) is invalidpublic 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