public class DateTimeInfo
extends java.lang.Object
Constructor and Description |
---|
DateTimeInfo(Calendar calendar,
java.util.Locale locale)
Initializes a new instance of the
DateTimeInfo class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbbreviatedDayName(DayOfWeek day)
Gets the abbreviated name of the specified day of the week.
|
java.lang.String[] |
getAbbreviatedDayNames()
Gets the abbreviated names of the days of the week.
|
java.lang.String[] |
getAbbreviatedMonthNames()
Gets the abbreviated names of the months.
|
java.lang.String |
getAMDesignator()
Gets the string designator for hours that are "ante meridiem" (before noon).
|
java.lang.String |
getDayName(DayOfWeek day)
Gets the name of the specified day of the week.
|
java.lang.String[] |
getDayNames()
Gets the full names of the days of the week.
|
DayOfWeek |
getFirstDayOfWeek()
Gets the first day of the week.
|
DayOfWeek |
getFirstWeekendDay()
Gets the first weekend day.
|
java.util.Locale |
getLocale()
Gets the underlying
Locale . |
java.lang.String[] |
getMonthNames()
Gets the full names of the months.
|
java.lang.String |
getPMDesignator()
Gets the string designator for hours that are "post meridiem" (before noon).
|
DayOfWeek |
getSecondWeekendDay()
Gets the second weekend day.
|
int |
getWeekOfYear(DateTime date)
Gets the week of the year for the specified date.
|
boolean |
isWeekend(DayOfWeek dayOfWeek)
Gets a value indicating whether the specified day of the week is a weekend day.
|
void |
setFirstDayOfWeek(DayOfWeek value)
Sets the first day of the week.
|
void |
setFirstWeekendDay(DayOfWeek value)
Sets the first weekend day.
|
public DateTimeInfo(Calendar calendar, java.util.Locale locale)
DateTimeInfo
class.public java.util.Locale getLocale()
Locale
.Locale
object.public DayOfWeek getFirstDayOfWeek()
DayOfWeek
constants.public void setFirstDayOfWeek(DayOfWeek value)
value
- One of the DayOfWeek
constants.public DayOfWeek getFirstWeekendDay()
public void setFirstWeekendDay(DayOfWeek value)
public DayOfWeek getSecondWeekendDay()
public boolean isWeekend(DayOfWeek dayOfWeek)
dayOfWeek
- One of the DayOfWeek
constants.public int getWeekOfYear(DateTime date)
date
- The DateTime
object to test.public java.lang.String[] getDayNames()
public java.lang.String getDayName(DayOfWeek day)
day
- One of the DayOfWeek
constants.public java.lang.String[] getAbbreviatedDayNames()
public java.lang.String getAbbreviatedDayName(DayOfWeek day)
day
- One of DayOfWeek
constants.public java.lang.String[] getMonthNames()
public java.lang.String[] getAbbreviatedMonthNames()
public java.lang.String getAMDesignator()
public java.lang.String getPMDesignator()