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(com.mindfusion.common.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(com.mindfusion.common.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.
|
com.mindfusion.common.DayOfWeek |
getFirstDayOfWeek()
Gets the first day of the week.
|
com.mindfusion.common.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).
|
com.mindfusion.common.DayOfWeek |
getSecondWeekendDay()
Gets the second weekend day.
|
int |
getWeekOfYear(com.mindfusion.common.DateTime date)
Gets the week of the year for the specified date.
|
boolean |
isWeekend(com.mindfusion.common.DayOfWeek dayOfWeek)
Gets a value indicating whether the specified day of the week is a weekend day.
|
void |
setFirstDayOfWeek(com.mindfusion.common.DayOfWeek value)
Sets the first day of the week.
|
void |
setFirstWeekendDay(com.mindfusion.common.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 com.mindfusion.common.DayOfWeek getFirstDayOfWeek()
DayOfWeek constants.public void setFirstDayOfWeek(com.mindfusion.common.DayOfWeek value)
value - One of the DayOfWeek constants.public com.mindfusion.common.DayOfWeek getFirstWeekendDay()
DayOfWeek constants.
The default is Saturday.public void setFirstWeekendDay(com.mindfusion.common.DayOfWeek value)
value - One of the DayOfWeek constants.
The default is Saturday.public com.mindfusion.common.DayOfWeek getSecondWeekendDay()
DayOfWeek constants.
The default is Sunday.public boolean isWeekend(com.mindfusion.common.DayOfWeek dayOfWeek)
dayOfWeek - One of the DayOfWeek constants.public int getWeekOfYear(com.mindfusion.common.DateTime date)
date - The DateTime object to test.public java.lang.String[] getDayNames()
public java.lang.String getDayName(com.mindfusion.common.DayOfWeek day)
day - One of the DayOfWeek constants.public java.lang.String[] getAbbreviatedDayNames()
public java.lang.String getAbbreviatedDayName(com.mindfusion.common.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()