Name
JapaneseCalendar
Synopsis
This calendar class implements the Japanese or Wareki calendar. This calendar follows the same rules and settings as the Gregorian calendar, except that it is divided into eras based on the reign of each Japanese Emperor.
Public Class JapaneseCalendar : Inherits Calendar ' Public Constructors Public Sub New() ' 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, ByVal era As Integer) As Integer Overrides Public Function GetYear( ByVal time As Date) As Integer Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day ...
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.