public class MsDateTimeFormat
extends com.google.gwt.i18n.shared.DateTimeFormat
/Date(1224043200000)/
Thanks to obesga@gmail.com who contributed this class to Piriti.
https://groups.google.com/d/topic/piriti/1AWGJmECMak/discussion,
https://groups.google.com/d/topic/piriti/Is3Z3tBDgVM/discussion| Modifier and Type | Field and Description |
|---|---|
static MsDateTimeFormat |
me |
static String |
PATTERN |
static String |
postfix |
static String |
prefix |
| Modifier | Constructor and Description |
|---|---|
protected |
MsDateTimeFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Date date) |
String |
format(Date date,
com.google.gwt.i18n.shared.TimeZone timeZone) |
String |
getPattern() |
static boolean |
matches(String text)
Test a string against regular expression (make sure it is created before)
|
Date |
parse(String text) |
int |
parse(String text,
int start,
Date date) |
Date |
parseStrict(String text) |
int |
parseStrict(String text,
int start,
Date date) |
public static final MsDateTimeFormat me
public static final String PATTERN
public static final String prefix
public static final String postfix
public String format(Date date)
format in class com.google.gwt.i18n.shared.DateTimeFormatpublic String format(Date date, com.google.gwt.i18n.shared.TimeZone timeZone)
format in class com.google.gwt.i18n.shared.DateTimeFormatpublic String getPattern()
getPattern in class com.google.gwt.i18n.shared.DateTimeFormatpublic Date parse(String text) throws IllegalArgumentException
parse in class com.google.gwt.i18n.shared.DateTimeFormatIllegalArgumentExceptionpublic int parse(String text, int start, Date date)
parse in class com.google.gwt.i18n.shared.DateTimeFormatpublic Date parseStrict(String text) throws IllegalArgumentException
parseStrict in class com.google.gwt.i18n.shared.DateTimeFormatIllegalArgumentExceptionpublic int parseStrict(String text, int start, Date date)
parseStrict in class com.google.gwt.i18n.shared.DateTimeFormatpublic static boolean matches(String text)
text - Text to testCopyright © 2013 Harald Pehl. All Rights Reserved.