本文整理匯總了VB.NET中System.Globalization.UmAlQuraCalendar.IsLeapYear方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET UmAlQuraCalendar.IsLeapYear方法的具體用法?VB.NET UmAlQuraCalendar.IsLeapYear怎麽用?VB.NET UmAlQuraCalendar.IsLeapYear使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。
在下文中一共展示了UmAlQuraCalendar.IsLeapYear方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: Example
' 導入命名空間
Imports System.Globalization
Module Example
Public Sub Main()
Dim cal As New UmAlQuraCalendar()
Dim currentYear As Integer = cal.GetYear(Date.Now)
For year As Integer = currentYear To currentYear + 9
Console.WriteLine("{0:d4}: {1} days {2}", year,
cal.GetDaysInYear(year, UmAlQuraCalendar.UmAlQuraEra),
If(cal.IsLeapYear(year, UmAlQuraCalendar.UmAlQuraEra),
"(Leap Year)", ""))
Next
End Sub
End Module
輸出:
1431: 354 days 1432: 354 days 1433: 355 days (Leap Year) 1434: 354 days 1435: 355 days (Leap Year) 1436: 354 days 1437: 354 days 1438: 354 days 1439: 355 days (Leap Year) 1440: 354 days