| 包 | flash.globalization |
| 类 | public final class DateTimeStyle |
| 继承 | DateTimeStyle Object |
| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10.1, AIR 2 |
DateTimeFormatter.setDateTimeStyles() 方法时,会使用这些常量。
CUSTOM 常量不可用于 DateTimeFormatter 构造函数或 DateFormatter.setDateTimeStyles() 方法。作为调用 DateTimeFormatter.setDateTimePattern() 方法的另一个结果,此常量将设置为 timeStyle 和 dateStyle 属性。
相关 API 元素
公共常量
| 常量 | 由以下参数定义 | ||
|---|---|---|---|
| CUSTOM : String = "custom" [静态]
指定使用自定义样式字符串来指定日期或时间样式。 | DateTimeStyle | ||
| LONG : String = "long" [静态]
指定长型样式的日期或时间。 | DateTimeStyle | ||
| MEDIUM : String = "medium" [静态]
指定中型样式的日期或时间。 | DateTimeStyle | ||
| NONE : String = "none" [静态]
指定设置了格式的字符串中不应包含日期或时间。 | DateTimeStyle | ||
| SHORT : String = "short" [静态]
指定短型样式的日期或时间。 | DateTimeStyle | ||
常量详细信息
CUSTOM | 常量 |
public static const CUSTOM:String = "custom"| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10.1, AIR 2 |
指定使用自定义样式字符串来指定日期或时间样式。
LONG | 常量 |
public static const LONG:String = "long"| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10.1, AIR 2 |
指定长型样式的日期或时间。
MEDIUM | 常量 |
public static const MEDIUM:String = "medium"| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10.1, AIR 2 |
指定中型样式的日期或时间。
NONE | 常量 |
public static const NONE:String = "none"| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10.1, AIR 2 |
指定设置了格式的字符串中不应包含日期或时间。
SHORT | 常量 |
public static const SHORT:String = "short"| 语言版本: | ActionScript 3.0 |
| 运行时版本: | Flash Player 10.1, AIR 2 |
指定短型样式的日期或时间。
Tue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性