Name

ThaiBuddhistCalendar

Synopsis

This class implements the Thai Buddhist calendar. This calendar works like the Gregorian calendar except for the year and era. 2001 in the Gregorian calendar is the year 2544 in the Thai Buddhist calendar.

Public Class ThaiBuddhistCalendar : Inherits Calendar
' Public Constructors
   Public Sub New() 
' Public Shared Fields
   Public const ThaiBuddhistEra 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 Function IsLeapDay ...

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.