public class JREDateTimeUtil extends DateTimeUtil
DAY, HOUR, MILLISECOND, MINUTE, MONTH, QUARTER, SECOND, WEEK, YEAR
Modifier and Type | Method and Description |
---|---|
int |
getDay(TimeZone tz,
DateTime dt) |
int |
getDayOfWeek(Locale locale,
TimeZone tz,
DateTime dt) |
int |
getDayOfYear(Locale locale,
TimeZone tz,
DateTime dt) |
int |
getDaysInMonth(TimeZone tz,
DateTime dt) |
int |
getFirstDayOfMonth(TimeZone tz,
DateTime dt) |
int |
getHour(TimeZone tz,
DateTime dt) |
int |
getMilliSecond(TimeZone tz,
DateTime dt) |
long |
getMilliSecondsInDay(TimeZone tz,
long time) |
int |
getMinute(TimeZone tz,
DateTime dt) |
int |
getMonth(TimeZone tz,
DateTime dt) |
int |
getSecond(TimeZone tz,
DateTime dt) |
static Calendar |
getThreadCalendar()
important:this function returns always the same instance for a specific thread,
so make sure only use one thread calendar instance at time.
|
static Calendar |
getThreadCalendar(Locale l,
TimeZone tz)
important:this function returns always the same instance for a specific thread,
so make sure only use one thread calendar instance at time.
|
static Calendar |
getThreadCalendar(TimeZone tz)
important:this function returns always the same instance for a specific thread,
so make sure only use one thread calendar instance at time.
|
int |
getWeekOfYear(Locale locale,
TimeZone tz,
DateTime dt) |
int |
getYear(TimeZone tz,
DateTime dt) |
static Calendar |
newInstance(TimeZone tz,
Locale l) |
String |
toString(DateTime dt,
TimeZone tz) |
daysInMonth, getInstance, getMilliSecondsAdMidnight, isLeapYear, toBooleanValue, toDateTime, toDateTime, toDateTime, toDoubleValue, toDoubleValue, toHTTPTimeString, toHTTPTimeString, toTime, toTime, toYear
public int getYear(TimeZone tz, DateTime dt)
getYear
in class DateTimeUtil
public int getMonth(TimeZone tz, DateTime dt)
getMonth
in class DateTimeUtil
public int getDay(TimeZone tz, DateTime dt)
getDay
in class DateTimeUtil
public int getHour(TimeZone tz, DateTime dt)
getHour
in class DateTimeUtil
public int getMinute(TimeZone tz, DateTime dt)
getMinute
in class DateTimeUtil
public int getSecond(TimeZone tz, DateTime dt)
getSecond
in class DateTimeUtil
public int getMilliSecond(TimeZone tz, DateTime dt)
getMilliSecond
in class DateTimeUtil
public int getDayOfYear(Locale locale, TimeZone tz, DateTime dt)
getDayOfYear
in class DateTimeUtil
public int getDayOfWeek(Locale locale, TimeZone tz, DateTime dt)
getDayOfWeek
in class DateTimeUtil
public int getFirstDayOfMonth(TimeZone tz, DateTime dt)
getFirstDayOfMonth
in class DateTimeUtil
public int getWeekOfYear(Locale locale, TimeZone tz, DateTime dt)
getWeekOfYear
in class DateTimeUtil
public long getMilliSecondsInDay(TimeZone tz, long time)
getMilliSecondsInDay
in class DateTimeUtil
public int getDaysInMonth(TimeZone tz, DateTime dt)
getDaysInMonth
in class DateTimeUtil
public String toString(DateTime dt, TimeZone tz)
toString
in class DateTimeUtil
public static Calendar newInstance(TimeZone tz, Locale l)
public static Calendar getThreadCalendar()
public static Calendar getThreadCalendar(TimeZone tz)
public static Calendar getThreadCalendar(Locale l, TimeZone tz)
Copyright © 2015 Lucee