|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.util.TimeConversionUtil
タイム用の変換ユーティリティです。
コンストラクタの概要 | |
protected |
TimeConversionUtil()
インスタンスを構築します。 |
メソッドの概要 | |
static String |
convertShortPattern(String pattern)
短いパターンに変換します。 |
static SimpleDateFormat |
getDateFormat(String s,
Locale locale)
日付フォーマットを返します。 |
static SimpleDateFormat |
getDateFormat(String s,
String pattern,
Locale locale)
日付フォーマットを返します。 |
static String |
getPattern(Locale locale)
日付パターンを返します。 |
static Time |
toTime(Object o)
タイムに変換します。 |
static Time |
toTime(Object o,
String pattern)
タイムに変換します。 |
static Time |
toTime(String s,
String pattern)
タイムに変換します。 |
static Time |
toTime(String s,
String pattern,
Locale locale)
タイムに変換します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected TimeConversionUtil()
メソッドの詳細 |
public static Time toTime(Object o)
o
- 変換したいオブジェクト
public static Time toTime(Object o, String pattern)
o
- 変換したいオブジェクトpattern
- パターン
public static Time toTime(String s, String pattern)
s
- 文字列で表現した値pattern
- パターン
public static Time toTime(String s, String pattern, Locale locale)
s
- 文字列で表現した値pattern
- パターンlocale
- ロケール
public static SimpleDateFormat getDateFormat(String s, String pattern, Locale locale)
s
- 文字列で表現した値pattern
- パターンlocale
- ロケール
public static SimpleDateFormat getDateFormat(String s, Locale locale)
s
- 文字列で表現した値locale
- ロケール
public static String getPattern(Locale locale)
locale
-
public static String convertShortPattern(String pattern)
pattern
- パターン
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |