Month.Length(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the length of this month in days.
[Android.Runtime.Register("length", "(Z)I", "", ApiSince=26)]
public int Length (bool leapYear);
[<Android.Runtime.Register("length", "(Z)I", "", ApiSince=26)>]
member this.Length : bool -> int
Parameters
- leapYear
- Boolean
true if the length is required for a leap year
Returns
the length of this month in days, from 28 to 31
- Attributes
Remarks
Gets the length of this month in days.
This takes a flag to determine whether to return the length for a leap year or not.
February has 28 days in a standard year and 29 days in a leap year. April, June, September and November have 30 days. All other months have 31 days.
Java documentation for java.time.Month.length(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.