Java Code Examples for org.joda.time.Chronology#minuteOfHour()
The following examples show how to use
org.joda.time.Chronology#minuteOfHour() .
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: TestReadablePartialConverter.java From astor with GNU General Public License v2.0 | 5 votes |
protected DateTimeField getField(int index, Chronology chrono) { switch (index) { case 0: return chrono.hourOfDay(); case 1: return chrono.minuteOfHour(); case 2: return chrono.year(); case 3: return chrono.era(); } return null; }
Example 2
Source File: TestReadablePartialConverter.java From astor with GNU General Public License v2.0 | 5 votes |
protected DateTimeField getField(int index, Chronology chrono) { switch (index) { case 0: return chrono.hourOfDay(); case 1: return chrono.minuteOfHour(); case 2: return chrono.year(); case 3: return chrono.era(); } return null; }
Example 3
Source File: HourMinuteSecond.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
/** * Gets the field for a specific index in the chronology specified. * <p> * This method must not use any instance variables. * * @param index * the index to retrieve * @param chrono * the chronology to use * @return the field */ @Override protected DateTimeField getField(int index, Chronology chrono) { switch (index) { case HOUR_OF_DAY: return chrono.hourOfDay(); case MINUTE_OF_HOUR: return chrono.minuteOfHour(); case SECOND_OF_MINUTE: return chrono.secondOfMinute(); default: throw new IndexOutOfBoundsException("Invalid index: " + index); } }