public 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.
|
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