Home | History | Annotate | Download | only in chrono

Lines Matching defs:of

6  * under the terms of the GNU General Public License version 2 only, as
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * You should have received a copy of the GNU General Public License version
34 * * Redistributions of source code must retain the above copyright notice,
35 * this list of conditions and the following disclaimer.
38 * this list of conditions and the following disclaimer in the documentation
41 * * Neither the name of JSR-310 nor the names of its contributors
47 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
51 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
52 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
54 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
55 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
150 * Using this method allows the use of an alternate clock for testing.
163 * system from the proleptic-year, month-of-year and day-of-month fields.
169 * @param month the Thai Buddhist month-of-year, from 1 to 12
170 * @param dayOfMonth the Thai Buddhist day-of-month, from 1 to 31
172 * @throws DateTimeException if the value of any field is out of range,
173 * or if the day-of-month is invalid for the month-year
175 public static ThaiBuddhistDate of(int prolepticYear, int month, int dayOfMonth) {
176 return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth));
183 * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
184 * which this factory converts to an instance of {@code ThaiBuddhistDate}.
189 * This method matches the signature of the functional interface {@link TemporalQuery}
213 * Gets the chronology of this date, which is the Thai Buddhist calendar system.
239 * Returns the length of the month represented by this date.
241 * This returns the length of the month in days.
242 * Month lengths match those of the ISO calendar system.
244 * @return the length of the month in days
265 return ValueRange.of(1, max);
442 * Only objects of type {@code ThaiBuddhistDate} are compared, other types return false.
443 * To compare the dates of two {@code TemporalAccessor} instances, including dates
493 * @return the instance of {@code Ser}, not null