Revision 1881 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/CoerceToDateTime.java
CoerceToDateTime.java | ||
---|---|---|
41 | 41 |
*/ |
42 | 42 |
public class CoerceToDateTime extends AbstractCoerceToDate { |
43 | 43 |
|
44 |
protected DateFormat createFormatter(Locale locale) { |
|
45 |
return DateFormat.getDateTimeInstance(DateFormat.SHORT, |
|
46 |
DateFormat.MEDIUM, locale); |
|
44 |
@Override |
|
45 |
protected DateFormat[] getFormatters(Locale locale) { |
|
46 |
return new DateFormat[] { |
|
47 |
DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.MEDIUM, locale), |
|
48 |
DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT, locale) |
|
49 |
}; |
|
47 | 50 |
} |
48 | 51 |
|
52 |
@Override |
|
49 | 53 |
protected String getDateType() { |
50 | 54 |
return "DateTime or Timestamp"; |
51 | 55 |
} |
Also available in: Unified diff