Java 类org.joda.time.field.RemainderDateTimeField 实例源码

项目:TinyTravelTracker    文件:ISOChronology.java   
protected void assemble(Fields fields) {
    if (getBase().getZone() == DateTimeZone.UTC) {
        // Use zero based century and year of century.
        fields.centuryOfEra = new DividedDateTimeField(
            ISOYearOfEraDateTimeField.INSTANCE, DateTimeFieldType.centuryOfEra(), 100);
        fields.yearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.yearOfCentury());
        fields.weekyearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.weekyearOfCentury());

        fields.centuries = fields.centuryOfEra.getDurationField();
    }
}
项目:astor    文件:ISOChronology.java   
protected void assemble(Fields fields) {
    if (getBase().getZone() == DateTimeZone.UTC) {
        // Use zero based century and year of century.
        fields.centuryOfEra = new DividedDateTimeField(
            ISOYearOfEraDateTimeField.INSTANCE, DateTimeFieldType.centuryOfEra(), 100);
        fields.centuries = fields.centuryOfEra.getDurationField();

        fields.yearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.yearOfCentury());
        fields.weekyearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, fields.weekyears, DateTimeFieldType.weekyearOfCentury());
    }
}
项目:astor    文件:ISOChronology.java   
protected void assemble(Fields fields) {
    if (getBase().getZone() == DateTimeZone.UTC) {
        // Use zero based century and year of century.
        fields.centuryOfEra = new DividedDateTimeField(
            ISOYearOfEraDateTimeField.INSTANCE, DateTimeFieldType.centuryOfEra(), 100);
        fields.yearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.yearOfCentury());
        fields.weekyearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.weekyearOfCentury());

        fields.centuries = fields.centuryOfEra.getDurationField();
    }
}
项目:idylfin    文件:ISOChronology.java   
protected void assemble(Fields fields) {
    if (getBase().getZone() == DateTimeZone.UTC) {
        // Use zero based century and year of century.
        fields.centuryOfEra = new DividedDateTimeField(
            ISOYearOfEraDateTimeField.INSTANCE, DateTimeFieldType.centuryOfEra(), 100);
        fields.yearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.yearOfCentury());
        fields.weekyearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.weekyearOfCentury());

        fields.centuries = fields.centuryOfEra.getDurationField();
    }
}
项目:versemem-android    文件:ISOChronology.java   
protected void assemble(Fields fields) {
    if (getBase().getZone() == DateTimeZone.UTC) {
        // Use zero based century and year of century.
        fields.centuryOfEra = new DividedDateTimeField(
            ISOYearOfEraDateTimeField.INSTANCE, DateTimeFieldType.centuryOfEra(), 100);
        fields.yearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.yearOfCentury());
        fields.weekyearOfCentury = new RemainderDateTimeField(
            (DividedDateTimeField) fields.centuryOfEra, DateTimeFieldType.weekyearOfCentury());

        fields.centuries = fields.centuryOfEra.getDurationField();
    }
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new OffsetDateTimeField(new RemainderDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), MonthOfQuarter, 3), 1);
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new OffsetDateTimeField(new RemainderDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), MonthOfHalfYear, 6), 1);
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new OffsetDateTimeField(new RemainderDateTimeField(new OffsetDateTimeField(chronology.weekOfWeekyear(), -1), WeekOfMonth, 4), 1);
}