Package org.thymeleaf.util
Class DateUtils
- Object
-
- org.thymeleaf.util.DateUtils
-
public final class DateUtils extends Object
- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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, String pattern, Locale locale)
static String
format(Object target, 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)
-
-
-
Method Detail
-
create
public static Calendar create(Object year, Object month, Object day)
- Parameters:
year
- yearmonth
- monthday
- day- Returns:
- the result
- Since:
- 1.1.2
-
create
public static Calendar create(Object year, Object month, Object day, Object hour, Object minute)
- Parameters:
year
- yearmonth
- monthday
- dayhour
- hourminute
- minute- Returns:
- the result
- Since:
- 1.1.2
-
create
public static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second)
- Parameters:
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- second- Returns:
- the result
- Since:
- 1.1.2
-
create
public static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second, Object millisecond)
- Parameters:
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondmillisecond
- millisecond- Returns:
- the result
- Since:
- 1.1.2
-
create
public static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second, Object millisecond, Object timeZone)
- Parameters:
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondmillisecond
- millisecondtimeZone
- timeZone- Returns:
- the result
- Since:
- 2.1.0
-
create
public static Calendar create(Object year, Object month, Object day, Object hour, Object minute, Object second, Object millisecond, Object timeZone, Locale locale)
- Parameters:
year
- yearmonth
- monthday
- dayhour
- hourminute
- minutesecond
- secondmillisecond
- millisecondtimeZone
- timeZonelocale
- locale- Returns:
- the result
- Since:
- 2.1.0
-
createNow
public static Calendar createNow()
- Returns:
- the result
- Since:
- 1.1.2
-
createNow
public static Calendar createNow(Object timeZone)
- Parameters:
timeZone
- timeZone- Returns:
- the result
- Since:
- 2.1.0
-
createNow
public static Calendar createNow(Object timeZone, Locale locale)
- Parameters:
timeZone
- timeZonelocale
- locale- Returns:
- the result
- Since:
- 2.1.0
-
createToday
public static Calendar createToday()
- Returns:
- the result
- Since:
- 1.1.2
-
createToday
public static Calendar createToday(Object timeZone)
- Parameters:
timeZone
- timeZone- Returns:
- the result
- Since:
- 2.1.0
-
createToday
public static Calendar createToday(Object timeZone, Locale locale)
- Parameters:
timeZone
- timeZonelocale
- locale- Returns:
- the result
- Since:
- 2.1.0
-
-