built-in method

अधिवर्ष
अधिवर्ष PowerShell में
function Test-Leap([int] $year) {
    [DateTime]::IsLeapYear($year)
}

Utilizing the DateTime class from .NET, you can determine if a year is a leap year or not by passing it into the IsLeapYear static method. This might not be the intended approach for learning, but it is an idiomatic way to check if a year is leap or not.

IsLeapYear method.

23 सितंबर 2026 · क्या यह आपके काम आया?

PowerShell में अधिवर्ष के लिए अन्य अप्रोच

हमारे समुदाय द्वारा इस अभ्यास को हल करने के और तरीके