Name
HijriCalendar
Synopsis
This calendar class implements the Islamic Hijri calendar. This calendar is based from the time of Mohammed’s migration from Mecca (denoted as A.H.). Regular years have 12 months and 354 days. Leap years have 355 days. Leap years are calculated in 30-year cycles, occurring in the 2nd, 5th, 7th, 10th, 13th, 16th, 18th, 21st, 24th, 26th, and 29th years.
Public Class HijriCalendar : Inherits Calendar ' Public Constructors Public Sub New() ' Public Shared Fields Public Shared ReadOnly HijriEra As Integer // =1 ' Public Instance Properties Overrides Public ReadOnly Property Eras As Integer() Overrides Public Property TwoDigitYearMax As Integer ' Public Instance Methods Overrides Public Function AddMonths(ByVal time As Date, ByVal months As Integer) As Date Overrides Public Function AddYears(ByVal time As Date, ByVal years As Integer) As Date Overrides Public Function GetDayOfMonth( ByVal time As Date) As Integer Overrides Public Function GetDayOfWeek( ByVal time As Date) As DayOfWeek Overrides Public Function GetDayOfYear( ByVal time As Date) As Integer Overrides Public Function GetDaysInMonth( ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer Overrides Public Function GetDaysInYear( ByVal year As Integer, ByVal era As Integer) As Integer Overrides Public Function GetEra( ByVal time As Date) As Integer Overrides Public Function GetMonth( ByVal time As Date) As Integer Overrides Public Function GetMonthsInYear( ByVal year As Integer, ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.