| Package | jp.nium.utils |
| Class | public final class DateUtil |
| Method | Defined by | ||
|---|---|---|---|
|
format(date:Date, str:String):String
[static]
| DateUtil | ||
|
getMaxDateLength(date:Date):int
[static]
対象の月の最大日数を返します。
Returns the maximum day of the month.
| DateUtil | ||
|
w3cdtfToDate(time:String):Date
[static]
W3CDTF 形式のストリングから Date インスタンスを生成して返します。
| DateUtil | ||
| Constant | Defined by | ||
|---|---|---|---|
| MAX_HOUR : int = 24 [static]
時間の最大値を表す定数を取得します。
Returns the maximum value of the hour.
| DateUtil | ||
| MAX_MILLISECOND : int = 1000 [static]
ミリ秒の最大値を表す定数を取得します。
Returns the maximum value of the millisecond.
| DateUtil | ||
| MAX_MINUTE : int = 60 [static]
分の最大値を表す定数を取得します。
Returns the maximum value of the minuite.
| DateUtil | ||
| MAX_SECOND : int = 60 [static]
秒の最大値を表す定数を取得します。
Returns the maximum value of the second.
| DateUtil | ||
| ONE_DAY : int = 86400000 [static]
1 日をミリ秒単位で表した定数を取得します。
Returns the fixed value of 1day by millisecond unit.
| DateUtil | ||
| ONE_HOUR : int = 3600000 [static]
1 時間をミリ秒単位で表した定数を取得します。
Returns the fixed value of 1hour by millisecond unit.
| DateUtil | ||
| ONE_MILLISECOND : int = 1 [static]
1 ミリ秒をミリ秒単位で表した定数を取得します。
Returns the fixed value which express the 1 millisecond by millisecond unit.
| DateUtil | ||
| ONE_MINUTE : int = 60000 [static]
1 分をミリ秒単位で表した定数を取得します。
Returns the fixed value of 1minuite by millisecond unit.
| DateUtil | ||
| ONE_SECOND : int = 1000 [static]
1 秒をミリ秒単位で表した定数を取得します。
Returns the fixed value of 1second by millisecond unit.
| DateUtil | ||
| format | () | method |
public static function format(date:Date, str:String):StringParameters
date:Date —
|
|
str:String —
|
String —
|
| getMaxDateLength | () | method |
public static function getMaxDateLength(date:Date):int対象の月の最大日数を返します。 Returns the maximum day of the month.
Parametersdate:Date — 最大日数を取得したい Date インスタンスです。
The date istance to get the maximum day.
|
int — 最大日数です。
The maximum day.
|
| w3cdtfToDate | () | method |
public static function w3cdtfToDate(time:String):DateW3CDTF 形式のストリングから Date インスタンスを生成して返します。
Parameterstime:String — W3CDTF 形式のストリングです。
|
Date — 生成された Date インスタンスです。
|
| MAX_HOUR | constant |
public static const MAX_HOUR:int = 24時間の最大値を表す定数を取得します。 Returns the maximum value of the hour.
| MAX_MILLISECOND | constant |
public static const MAX_MILLISECOND:int = 1000ミリ秒の最大値を表す定数を取得します。 Returns the maximum value of the millisecond.
| MAX_MINUTE | constant |
public static const MAX_MINUTE:int = 60分の最大値を表す定数を取得します。 Returns the maximum value of the minuite.
| MAX_SECOND | constant |
public static const MAX_SECOND:int = 60秒の最大値を表す定数を取得します。 Returns the maximum value of the second.
| ONE_DAY | constant |
public static const ONE_DAY:int = 864000001 日をミリ秒単位で表した定数を取得します。 Returns the fixed value of 1day by millisecond unit.
| ONE_HOUR | constant |
public static const ONE_HOUR:int = 36000001 時間をミリ秒単位で表した定数を取得します。 Returns the fixed value of 1hour by millisecond unit.
| ONE_MILLISECOND | constant |
public static const ONE_MILLISECOND:int = 11 ミリ秒をミリ秒単位で表した定数を取得します。 Returns the fixed value which express the 1 millisecond by millisecond unit.
| ONE_MINUTE | constant |
public static const ONE_MINUTE:int = 600001 分をミリ秒単位で表した定数を取得します。 Returns the fixed value of 1minuite by millisecond unit.
| ONE_SECOND | constant |
public static const ONE_SECOND:int = 10001 秒をミリ秒単位で表した定数を取得します。 Returns the fixed value of 1second by millisecond unit.