org.joda.time.field.ScaledDurationField Java Examples

The following examples show how to use org.joda.time.field.ScaledDurationField. 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: QuarterOfYearDateTimeField.java    From presto with Apache License 2.0 4 votes vote down vote up
@Override
public DurationField getField(Chronology chronology)
{
    return new ScaledDurationField(chronology.months(), QUARTER_OF_YEAR_DURATION_FIELD_TYPE, 3);
}
 
Example #2
Source File: Joda.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
@Override
public DurationField getField(Chronology chronology) {
    return new ScaledDurationField(chronology.months(), Quarters, 3);
}
 
Example #3
Source File: DateTruncTransformFunction.java    From incubator-pinot with Apache License 2.0 4 votes vote down vote up
@Override
public DurationField getField(Chronology chronology) {
  return new ScaledDurationField(chronology.months(), QUARTER_OF_YEAR_DURATION_FIELD_TYPE, 3);
}
 
Example #4
Source File: TimestampField.java    From suro with Apache License 2.0 4 votes vote down vote up
public DurationField getField(Chronology chronology) {
    return new ScaledDurationField(chronology.months(), Quarters, 3);
}
 
Example #5
Source File: Joda.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public DurationField getField(Chronology chronology) {
    return new ScaledDurationField(chronology.months(), QUARTERS, 3);
}