Uses of Class
java.text.DateFormat
-
Packages that use DateFormat 软件包 描述 java.text 提供用于以独立于自然语言的方式处理文本,日期,数字和消息的类和接口。java.text.spi java.text包中的类的服务提供者类。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。 -
-
Uses of DateFormat in java.text
Subclasses of DateFormat in java.text 变量和类型 类 描述 classSimpleDateFormatSimpleDateFormat是一个具体的类,用于以区域设置敏感的方式格式化和解析日期。Methods in java.text that return DateFormat 变量和类型 方法 描述 static DateFormatDateFormat. getDateInstance()获取具有默认FORMAT语言环境的默认格式设置样式的日期格式化程序。static DateFormatDateFormat. getDateInstance(int style)获取具有默认FORMAT语言环境的给定格式样式的日期格式化程序。static DateFormatDateFormat. getDateInstance(int style, Locale aLocale)获取具有给定语言环境的给定格式样式的日期格式化程序。static DateFormatDateFormat. getDateTimeInstance()获取具有默认FORMAT语言环境的默认格式样式的日期/时间格式化程序。static DateFormatDateFormat. getDateTimeInstance(int dateStyle, int timeStyle)获取具有默认FORMAT语言环境的给定日期和时间格式样式的日期/时间格式化程序。static DateFormatDateFormat. getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)获取具有给定语言环境的给定格式样式的日期/时间格式化程序。static DateFormatDateFormat. getInstance()获取一个默认的日期/时间格式化程序,它使用SHORT样式作为日期和时间。static DateFormatDateFormat. getTimeInstance()获取具有默认FORMAT语言环境的默认格式样式的时间格式化程序。static DateFormatDateFormat. getTimeInstance(int style)获取具有默认FORMAT语言环境的给定格式样式的时间格式化程序。static DateFormatDateFormat. getTimeInstance(int style, Locale aLocale)获取具有给定语言环境的给定格式样式的时间格式化程序。 -
Uses of DateFormat in java.text.spi
Methods in java.text.spi that return DateFormat 变量和类型 方法 描述 abstract DateFormatDateFormatProvider. getDateInstance(int style, Locale locale)返回一个新的DateFormat实例,该实例使用指定语言环境的给定格式样式格式化日期。abstract DateFormatDateFormatProvider. getDateTimeInstance(int dateStyle, int timeStyle, Locale locale)返回一个新的DateFormat实例,该实例使用指定语言环境的给定格式样式格式化日期和时间。abstract DateFormatDateFormatProvider. getTimeInstance(int style, Locale locale)返回一个新的DateFormat实例,该实例使用指定语言环境的给定格式样式格式化时间。 -
Uses of DateFormat in javax.swing.text
Methods in javax.swing.text with parameters of type DateFormat 变量和类型 方法 描述 voidDateFormatter. setFormat(DateFormat format)设置指示可以编辑和显示的合法值的格式。Constructors in javax.swing.text with parameters of type DateFormat 构造器 描述 DateFormatter(DateFormat format)Returns a DateFormatter configured with the specifiedFormatinstance.
-