Name

KoreanCalendar

Synopsis

This calendar class implements the Korean calendar. The Korean calendar is the same as the Gregorian calendar except that the eras are defined differently. 01 January, 2001 on the Gregorian calendar is 01 January, 4334 on the Korean calendar.

Public Class KoreanCalendar : Inherits Calendar
' Public Constructors
   Public Sub New() 
' Public Shared Fields
   Public const KoreanEra 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, 
        ByVal era As Integer) As Integer  
   Overrides Public Function GetYear( ByVal time As Date) As Integer Overrides Public ...

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.