下面列出了org.joda.time.DateTimeFieldType#dayOfWeek ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public int dayOfWeekTextToValue(String text) {
Integer day = iParseDaysOfWeek.get(text);
if (day != null) {
return day.intValue();
}
throw new IllegalFieldValueException(DateTimeFieldType.dayOfWeek(), text);
}
public int dayOfWeekTextToValue(String text) {
Integer day = iParseDaysOfWeek.get(text);
if (day != null) {
return day.intValue();
}
throw new IllegalFieldValueException(DateTimeFieldType.dayOfWeek(), text);
}
/**
* Restricted constructor.
*/
DayOfWeekFromSundayDateTimeField(Chronology chronology, DurationField days) {
super(DateTimeFieldType.dayOfWeek(), days);
this.chronology = chronology;
}
/**
* Restricted constructor.
*/
GJDayOfWeekDateTimeField(BasicChronology chronology, DurationField days) {
super(DateTimeFieldType.dayOfWeek(), days);
iChronology = chronology;
}
public TestGJDayOfWeekField(TestGJChronology chrono) {
super(DateTimeFieldType.dayOfWeek(), TestGJChronology.MILLIS_PER_DAY, chrono);
}
/**
* Restricted constructor.
*/
GJDayOfWeekDateTimeField(BasicChronology chronology, DurationField days) {
super(DateTimeFieldType.dayOfWeek(), days);
iChronology = chronology;
}
public TestGJDayOfWeekField(TestGJChronology chrono) {
super(DateTimeFieldType.dayOfWeek(), TestGJChronology.MILLIS_PER_DAY, chrono);
}