Flash CS3 ドキュメンテーション |
|||
| ActionScript 2.0 リファレンスガイド > ActionScript クラス > Date > getUTCMonth (Date.getUTCMonth メソッド) | |||
public getUTCMonth() : Number
指定された Date オブジェクトの月 (0 [1 月] ~ 11 [12 月]) を世界時で返します。
対応バージョン : ActionScript 1.0、Flash Player 5
Number - 整数。
次の例では、新しい Date オブジェクトを作成し、Date.getUTCMonth() および Date.getMonth() を使用します。今日の日付が月の最初または最後の日の場合、Date.getUTCMonth() の戻り値は、現地のタイムゾーンと世界時の関係によっては、Date.getMonth() の戻り値と異なる場合があります。,
var today_date:Date = new Date(); trace(today_date.getMonth()); // output based on local timezone trace(today_date.getUTCMonth()); // output equals getMonth() plus or minus 1
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/flash/9.0_jp/main/00001598.html