Example usage for Java android.text.format DateFormat fields, constructors, methods, implement or subclass
The text is from its open source code.
CharSequence | format(CharSequence inFormat, long inTimeInMillis) Given a format string and a time in milliseconds since Jan 1, 1970 GMT, returns a CharSequence containing the requested date. |
CharSequence | format(CharSequence inFormat, Date inDate) Given a format string and a java.util.Date object, returns a CharSequence containing the requested date. |
CharSequence | format(CharSequence inFormat, Calendar inDate) Given a format string and a java.util.Calendar object, returns a CharSequence containing the requested date. |
String | getBestDateTimePattern(Locale locale, String skeleton) Returns the best possible localized form of the given skeleton for the given locale. |
java.text.DateFormat | getDateFormat(Context context) Returns a java.text.DateFormat object that can format the date in short form according to the context's locale. |
char[] | getDateFormatOrder(Context context) Gets the current date format stored as a char array. |
java.text.DateFormat | getLongDateFormat(Context context) Returns a java.text.DateFormat object that can format the date in long form (such as Monday, January 3, 2000 ) for the context's locale. |
java.text.DateFormat | getMediumDateFormat(Context context) Returns a java.text.DateFormat object that can format the date in medium form (such as Jan 3, 2000 ) for the context's locale. |
java.text.DateFormat | getTimeFormat(Context context) Returns a java.text.DateFormat object that can format the time according to the context's locale and the user's 12-/24-hour clock preference. |
boolean | is24HourFormat(Context context) Returns true if times should be formatted as 24 hour times, false if times should be formatted as 12 hour (AM/PM) times. |