public final class DateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Calendar |
create(Object year,
Object month,
Object day) |
static Calendar |
create(Object year,
Object month,
Object day,
Object hour,
Object minute) |
static Calendar |
create(Object year,
Object month,
Object day,
Object hour,
Object minute,
Object second) |
static Calendar |
create(Object year,
Object month,
Object day,
Object hour,
Object minute,
Object second,
Object millisecond) |
static Calendar |
create(Object year,
Object month,
Object day,
Object hour,
Object minute,
Object second,
Object millisecond,
Object timeZone) |
static Calendar |
create(Object year,
Object month,
Object day,
Object hour,
Object minute,
Object second,
Object millisecond,
Object timeZone,
Locale locale) |
static Calendar |
createNow() |
static Calendar |
createNow(Object timeZone) |
static Calendar |
createNow(Object timeZone,
Locale locale) |
static Calendar |
createToday() |
static Calendar |
createToday(Object timeZone) |
static Calendar |
createToday(Object timeZone,
Locale locale) |
static Integer |
day(Object target) |
static Integer |
dayOfWeek(Object target) |
static String |
dayOfWeekName(Object target,
Locale locale) |
static String |
dayOfWeekNameShort(Object target,
Locale locale) |
static String |
format(Object target,
Locale locale) |
static String |
format(Object target,
String pattern,
Locale locale) |
static String |
formatISO(Object target) |
static Integer |
hour(Object target) |
static Integer |
millisecond(Object target) |
static Integer |
minute(Object target) |
static Integer |
month(Object target) |
static String |
monthName(Object target,
Locale locale) |
static String |
monthNameShort(Object target,
Locale locale) |
static Integer |
second(Object target) |
static Integer |
year(Object target) |
public static Calendar create(Object year, Object month, Object day)
year
- yearmonth
- monthday
- daypublic static Calendar create(Object year, Object month, Object day, Object hour, Object minute)
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutepublic static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second)
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondpublic static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second, Object millisecond)
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondmillisecond
- millisecondpublic static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second, Object millisecond, Object timeZone)
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondmillisecond
- millisecondtimeZone
- timeZonepublic static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second, Object millisecond, Object timeZone, Locale locale)
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondmillisecond
- millisecondtimeZone
- timeZonelocale
- localepublic static Calendar createNow()
public static Calendar createNow(Object timeZone)
timeZone
- timeZonepublic static Calendar createNow(Object timeZone, Locale locale)
timeZone
- timeZonelocale
- localepublic static Calendar createToday()
public static Calendar createToday(Object timeZone)
timeZone
- timeZonepublic static Calendar createToday(Object timeZone, Locale locale)
timeZone
- timeZonelocale
- localeCopyright © 2016 The THYMELEAF team. All rights reserved.