public class SimpleDateFormat extends DateFormat
http://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html
Constructor and Description |
---|
SimpleDateFormat()
Deprecated.
Construct a SimpleDateFormat with no pattern.
|
SimpleDateFormat(String pattern)
Deprecated.
Construct a SimpleDateFormat with a given pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
applyPattern(String pattern)
Deprecated.
Apply a new pattern.
|
Object |
clone()
Deprecated.
|
String |
format(Date source)
Deprecated.
Format a given date.
|
DateFormatSymbols |
getDateFormatSymbols()
Deprecated.
Get the date format symbols for parsing/formatting textual components of
dates in a localization sensitive way.
|
Date |
parse(String source)
Deprecated.
NOT IMPLEMENTED - use SimpleDateFormat for parsing instead.
|
void |
setDateFormatSymbols(DateFormatSymbols newSymbols)
Deprecated.
Apply new date format symbols for parsing/formatting textual components
of dates in a localisation sensitive way.
|
String |
toPattern()
Deprecated.
|
equals, format, getDateInstance, getDateInstance, getDateTimeInstance, getInstance, getTimeInstance, getTimeInstance, hashCode, parseObject
public SimpleDateFormat()
public SimpleDateFormat(String pattern)
pattern
- public String toPattern()
public DateFormatSymbols getDateFormatSymbols()
public void setDateFormatSymbols(DateFormatSymbols newSymbols)
newSymbols
- new format symbols.public void applyPattern(String pattern)
pattern
- the pattern to setpublic Object clone()
clone
in class DateFormat
public String format(Date source)
DateFormat
format
in class DateFormat
source
- date to be formatted.public Date parse(String source) throws ParseException
DateFormat
parse
in class DateFormat
ParseException