VOOZH about

URL: https://www.geeksforgeeks.org/java/hijrahdate-lengthofyear-method-in-java-with-example/

⇱ HijrahDate lengthOfYear() method in Java with Example - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HijrahDate lengthOfYear() method in Java with Example

Last Updated : 27 Feb, 2020
The lengthOfYear() method of java.time.chrono.HijrahDate class is used to get the no of days present in a year represented by a particular hijrah date. Syntax:
public int lengthOfYear()
Parameter: This method does not accept any argument as a parameter. Return Value: This method returns the number of days present as an integer value in a year represented by a particular hijrah date. Below are the examples to illustrate the lengthOfYear() method: Example 1:
Output:
no of day present: 354
Example 2:
Comment