public class LdiTimeConversionUtil extends Object
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
LdiTimeConversionUtil()
インスタンスを構築します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
タイムに変換します。
|
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 - ロケールCopyright © 2015 The DBFlute Project. All rights reserved.