Class SimpleDateFormat
java.lang.Object
java.text.Format
java.text.DateFormat
java.text.SimpleDateFormat
- All Implemented Interfaces:
Cloneable
Deprecated.
this class has many issues in iOS and other platforms, please use the L10NManager
A class for parsing and formatting dates with a given pattern, compatible
with the Java 6 API.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct a SimpleDateFormat with no pattern.SimpleDateFormat(String pattern) Deprecated.Construct a SimpleDateFormat with a given pattern. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyPattern(String pattern) Deprecated.Apply a new pattern.clone()Deprecated.Deprecated.Format a given date.Deprecated.Get the date format symbols for parsing/formatting textual components of dates in a localization sensitive way.Deprecated.NOT IMPLEMENTED - use SimpleDateFormat for parsing instead.voidsetDateFormatSymbols(DateFormatSymbols newSymbols) Deprecated.Apply new date format symbols for parsing/formatting textual components of dates in a localisation sensitive way.Deprecated.Methods inherited from class DateFormat
equals, format, getDateInstance, getDateInstance, getDateTimeInstance, getInstance, getTimeInstance, getTimeInstance, hashCode, parseObject
-
Constructor Details
-
SimpleDateFormat
public SimpleDateFormat()Deprecated.Construct a SimpleDateFormat with no pattern. -
SimpleDateFormat
Deprecated.Construct a SimpleDateFormat with a given pattern.- Parameters:
pattern-
-
-
Method Details
-
toPattern
-
getDateFormatSymbols
Deprecated.Get the date format symbols for parsing/formatting textual components of dates in a localization sensitive way.- Returns:
- current symbols.
-
setDateFormatSymbols
Deprecated.Apply new date format symbols for parsing/formatting textual components of dates in a localisation sensitive way.- Parameters:
newSymbols- new format symbols.
-
applyPattern
Deprecated.Apply a new pattern.- Parameters:
pattern- the pattern to set
-
clone
-
format
Deprecated.Description copied from class:DateFormatFormat a given date.- Overrides:
formatin classDateFormat- Parameters:
source- date to be formatted.- Returns:
- formatted date.
-
parse
Deprecated.Description copied from class:DateFormatNOT IMPLEMENTED - use SimpleDateFormat for parsing instead.- Overrides:
parsein classDateFormat- Throws:
ParseException
-