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

项目: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();
    }
}
项目:elasticsearch_my    文件:Joda.java   
@Override
public DateTimeField getField(Chronology chronology) {
    return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), QuarterOfYear, 3), 1);
}
项目:Elasticsearch    文件:Joda.java   
@Override
public DateTimeField getField(Chronology chronology) {
    return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), QuarterOfYear, 3), 1);
}
项目:presto    文件:QuarterOfYearDateTimeField.java   
@Override
public DateTimeField getField(Chronology chronology)
{
    return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), QUARTER_OF_YEAR, 3), 1);
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), QuarterOfYear, 3), 1);
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), HalfYearOfYear, 6), 1);
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new DividedDateTimeField(chronology.yearOfCentury(), DecadeOfCentury, 10);
}
项目:stanford-nlp    文件:JodaTimeUtils.java   
public DateTimeField getField(Chronology chronology) {
  return new DividedDateTimeField(chronology.yearOfCentury(), YearOfDecade, 10);
}
项目:suro    文件:TimestampField.java   
public DateTimeField getField(Chronology chronology) {
    return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), QuarterOfYear, 3), 1);
}