List of usage examples for com.google.gwt.i18n.shared DateTimeFormatInfo timeFormat
String timeFormat();
From source file:org.homedns.mkh.dataservice.client.DateFormatter.java
License:Apache License
/** * @param iStyle date/time representation 0 - DATE, 1 - TIME, 2 - TIMESTAMP *//*from ww w. jav a2s. c om*/ private DateFormatter(int iStyle) { DateTimeFormatInfo fmt = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo(); if (iStyle == 0) { _dateFormatter = DateTimeFormat.getFormat(fmt.dateFormatShort()); } else if (iStyle == 1) { _dateFormatter = DateTimeFormat.getFormat(fmt.timeFormat()); } else if (iStyle == 2) { _dateFormatter = DateTimeFormat.getFormat(fmt.dateFormatShort() + " " + fmt.timeFormat()); } }