Example usage for org.joda.time ReadableInstant get

List of usage examples for org.joda.time ReadableInstant get

Introduction

In this page you can find the example usage for org.joda.time ReadableInstant get.

Prototype

int get(DateTimeFieldType type);

Source Link

Document

Get the value of one of the fields of a datetime.

Usage

From source file:org.opencastproject.scheduler.impl.persistence.SchedulerServiceDatabaseImpl.java

License:Educational Community License

/** Create a Partial from an Instant extracting month and day. */
private Partial partialize(ReadableInstant instant) {
    return partial(instant.get(DateTimeFieldType.monthOfYear()), instant.get(DateTimeFieldType.dayOfMonth()));
}