Go to content Go to navigation Go to search

Brokenwire.NET::Programming

Leaping in PowerShell
· 2008-02-29 14:04 by Thijs Kroesbergen for Brokenwire.NET

Because today is a special day, Leon decided to use C# to calculate a leap year. Because I'm in the PowerShell mood, I'll use that to do exactly the same thing!
Are you ready? Here it is:

[DateTime]::IsLeapYear($year)

Can you see the connection between C# and PowerShell?

Permalink -