public class DateUtil
extends java.lang.Object
コンストラクタと説明 |
---|
DateUtil() |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.util.Calendar |
getCalendar(boolean useTenantTimeZone) |
static java.util.Calendar |
getCalendar(java.util.Locale locale,
boolean useTenantTimeZone) |
static java.sql.Date |
getCurrentDate()
テナントローカルの現在日付を返します。
|
static java.sql.Time |
getCurrentTime()
テナントローカルの現在時間を返します。
|
static java.sql.Timestamp |
getCurrentTimestamp()
現在日時を返します。
|
static java.text.DateFormat |
getDateInstance(int style,
boolean useTenantTimeZone) |
static java.text.DateFormat |
getDateInstance(int style,
java.util.Locale locale,
boolean useTenantTimeZone) |
static java.text.DateFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
boolean useTenantTimeZone) |
static java.text.DateFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale locale,
boolean useTenantTimeZone) |
static java.text.DateFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale locale,
java.util.TimeZone timeZone,
boolean useTenantTimeZone) |
static java.util.GregorianCalendar |
getGregorianCalendar(boolean useTenantTimeZone) |
static java.text.SimpleDateFormat |
getSimpleDateFormat(java.lang.String pattern,
boolean useTenantTimeZone)
指定のpatternのSimpleDateFormatのインスタンスを取得します。
|
static java.text.SimpleDateFormat |
getSimpleDateFormat(java.lang.String pattern,
boolean useTenantTimeZone,
boolean useUserLangLocale)
指定のpatternのSimpleDateFormatのインスタンスを取得します。
|
static java.text.DateFormat |
getTimeInstance(boolean useTenantTimeZone) |
static java.text.DateFormat |
getTimeInstance(int style,
boolean useTenantTimeZone) |
static java.text.DateFormat |
getTimeInstance(int style,
java.util.Locale locale,
boolean useTenantTimeZone) |
public static java.sql.Timestamp getCurrentTimestamp()
public static java.sql.Date getCurrentDate()
public static java.sql.Time getCurrentTime()
public static java.text.SimpleDateFormat getSimpleDateFormat(java.lang.String pattern, boolean useTenantTimeZone)
pattern
- useTenantTimeZone
- システムのデフォルトタイムゾーンではなく、テナントに設定されるタイムゾーンを利用する場合はtrueを指定しますpublic static java.text.SimpleDateFormat getSimpleDateFormat(java.lang.String pattern, boolean useTenantTimeZone, boolean useUserLangLocale)
pattern
- useTenantTimeZone
- システムのデフォルトタイムゾーンではなく、テナントに設定されるタイムゾーンを利用する場合はtrueを指定しますuseUserLangLocale
- テナントに設定されるロケールではなく、当該処理を実行しているユーザの言語に紐付くロケールを利用する場合はtrueを指定します。public static java.util.Calendar getCalendar(boolean useTenantTimeZone)
public static java.util.Calendar getCalendar(java.util.Locale locale, boolean useTenantTimeZone)
public static java.util.GregorianCalendar getGregorianCalendar(boolean useTenantTimeZone)
public static java.text.DateFormat getDateInstance(int style, boolean useTenantTimeZone)
public static java.text.DateFormat getDateInstance(int style, java.util.Locale locale, boolean useTenantTimeZone)
public static java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, boolean useTenantTimeZone)
public static java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, java.util.Locale locale, boolean useTenantTimeZone)
public static java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, java.util.Locale locale, java.util.TimeZone timeZone, boolean useTenantTimeZone)
public static java.text.DateFormat getTimeInstance(boolean useTenantTimeZone)
public static java.text.DateFormat getTimeInstance(int style, boolean useTenantTimeZone)
public static java.text.DateFormat getTimeInstance(int style, java.util.Locale locale, boolean useTenantTimeZone)