Name
HebrewCalendar
Synopsis
This calendar class implements the Hebrew calendar. This complicated calendar determines leap years within a 19-year cycle. The 3rd, 6th, 8th, 11th, 14th, 17th, and 19th years are leap years. Regular years have 12 months and between 353 to 355 days, leap years have 13 months and between 383 to 385 days; the variance is determined by the placement of Jewish holidays. This implementation recognizes the years 5343 to 6000 (A.M.), which is equivalent to the Gregorian years 1582 to 2240.
Public Class HebrewCalendar : Inherits Calendar ' Public Constructors Public Sub New() ' Public Shared Fields Public Shared ReadOnly HebrewEra 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 ...
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.