Java Code Examples for org.joda.time.DateTimeFieldType#dayOfWeek()

The following examples show how to use org.joda.time.DateTimeFieldType#dayOfWeek() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GJLocaleSymbols.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public int dayOfWeekTextToValue(String text) {
    Integer day = iParseDaysOfWeek.get(text);
    if (day != null) {
        return day.intValue();
    }
    throw new IllegalFieldValueException(DateTimeFieldType.dayOfWeek(), text);
}
 
Example 2
Source File: GJLocaleSymbols.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public int dayOfWeekTextToValue(String text) {
    Integer day = iParseDaysOfWeek.get(text);
    if (day != null) {
        return day.intValue();
    }
    throw new IllegalFieldValueException(DateTimeFieldType.dayOfWeek(), text);
}
 
Example 3
Source File: DayOfWeekFromSundayDateTimeField.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
/**
 * Restricted constructor.
 */
DayOfWeekFromSundayDateTimeField(Chronology chronology, DurationField days) {
  super(DateTimeFieldType.dayOfWeek(), days);
  this.chronology = chronology;
}
 
Example 4
Source File: GJDayOfWeekDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Restricted constructor.
 */
GJDayOfWeekDateTimeField(BasicChronology chronology, DurationField days) {
    super(DateTimeFieldType.dayOfWeek(), days);
    iChronology = chronology;
}
 
Example 5
Source File: TestGJDayOfWeekField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public TestGJDayOfWeekField(TestGJChronology chrono) {
    super(DateTimeFieldType.dayOfWeek(), TestGJChronology.MILLIS_PER_DAY, chrono);
}
 
Example 6
Source File: GJDayOfWeekDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Restricted constructor.
 */
GJDayOfWeekDateTimeField(BasicChronology chronology, DurationField days) {
    super(DateTimeFieldType.dayOfWeek(), days);
    iChronology = chronology;
}
 
Example 7
Source File: TestGJDayOfWeekField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public TestGJDayOfWeekField(TestGJChronology chrono) {
    super(DateTimeFieldType.dayOfWeek(), TestGJChronology.MILLIS_PER_DAY, chrono);
}