src/main/java/walkingkooka/datetime/DateTimeContext.java
/**
     * Returns the selected AM or PM given the hour of the day (24 hour time).
     */
Returns the selected AM or PM given the hour of the day (24 hour time).
Returns the selected AM or PM given the hour of the day ( 24 hour time ) .
default String ampm(final int hourOfDay) {
        if (hourOfDay < 0 || hourOfDay >= 24) {
            throw new IllegalArgumentException("Invalid hourOrDay " + hourOfDay + " not between 0 and 24");
        }
        return this.ampms().get(hourOfDay / 12);
    }
default String ampm ( final int hourOfDay ) { if ( hourOfDay < 0 || hourOfDay >= 24 ) { throw new IllegalArgumentException ( "Invalid hourOrDay " + hourOfDay + " not between 0 and 24" ) ; } return this . ampms ( ) . get ( hourOfDay / 12 ) ; }
Returns the selected AM or PM given the hour of the day (24 hour time).
Returns the selected AM or PM given the hour of the day ( 24 hour time ) .