The maximum valid year-of-era.
The maximum valid year-of-era. This is currently set to 9999 but may be changed to increase the valid range in a future version of the specification.
The minimum valid year-of-era.
Obtains a HijrahDate
of the Islamic Umm Al-Qura calendar from a temporal object.
Obtains a HijrahDate
of the Islamic Umm Al-Qura calendar from a temporal object.
This obtains a date in the Hijrah calendar system based on the specified temporal.
A TemporalAccessor
represents an arbitrary set of date and time information,
which this factory converts to an instance of HijrahDate
.
The conversion typically uses the ChronoField#EPOCH_DAY EPOCH_DAY
field, which is standardized across calendar systems.
This method matches the signature of the functional interface TemporalQuery
allowing it to be used as a query via method reference, HijrahDate::from
.
the temporal object to convert, not null
the date in Hijrah calendar system, not null
if unable to convert to a { @code HijrahDate}
Obtains the current HijrahDate
of the Islamic Umm Al-Qura calendar
from the specified clock.
Obtains the current HijrahDate
of the Islamic Umm Al-Qura calendar
from the specified clock.
This will query the specified clock to obtain the current date - today.
Using this method allows the use of an alternate clock for testing.
The alternate clock may be introduced using plain Clock dependency injection
.
the clock to use, not null
the current date, not null
if the current date cannot be obtained
Obtains the current HijrahDate
of the Islamic Umm Al-Qura calendar
in the specified time-zone.
Obtains the current HijrahDate
of the Islamic Umm Al-Qura calendar
in the specified time-zone.
This will query the Clock#system(ZoneId) system clock
to obtain the current date.
Specifying the time-zone avoids dependence on the default time-zone.
Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.
the zone ID to use, not null
the current date using the system clock, not null
Obtains the current HijrahDate
of the Islamic Umm Al-Qura calendar
in the default time-zone.
Obtains the current HijrahDate
of the Islamic Umm Al-Qura calendar
in the default time-zone.
This will query the Clock#systemDefaultZone() system clock
in the default
time-zone to obtain the current date.
Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.
the current date using the system clock and default time-zone, not null
Obtains an instance of HijrahDate
from the Hijrah era year,
month-of-year and day-of-month.
Obtains an instance of HijrahDate
from the Hijrah era year,
month-of-year and day-of-month. This uses the Hijrah era.
the proleptic year to represent in the Hijrah
the month-of-year to represent, from 1 to 12
the day-of-month to represent, from 1 to 30
the Hijrah date, never null
if the day-of-month is invalid for the month-year