org.joda.time.field.OffsetDateTimeField Java Examples

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