| 套件 | 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, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性