![]() |
VOOZH | about |
The minus() method of java.time.chrono.HijrahDate class is used to get the hijrah date after subtracting an amount of temporal accessor unit from the current hijrah date.
Syntax:
public HijrahDate minus(long amountToSubtract, TemporalUnit unit)
Parameter: This method takes the following argument as a parameter:
Return Value: This method returns the Hijrah date after subtracting an amount of temporal accessor unit from current Hijrah date.
Below are the examples to illustrate the minus() method:
Example 1:
old hijrah date: Hijrah-umalqura AH 1441-06-25 new hijrah date: Hijrah-umalqura AH 1441-06-03
Example 2:
old hijrah date: Hijrah-umalqura AH 1441-06-25 new hijrah date: Hijrah-umalqura AH 1401-06-25