Name
GregorianCalendar
Synopsis
This class implements the standard Western calendar, and also the default culture-invariant calendar. It defines two eras (B.C./B.C.E. and A.D./C.E.), 12 months per year. A leap year occurs every four years except for years divisible by 100. However, years divisible by 400 are leap years. Only the current era (A.D./C.E.) is recognized by .NET’s implementation of the Gregorian calendar.
Public Class GregorianCalendar : Inherits Calendar ' Public Constructors Public Sub New() Public Sub New( ByVal type As GregorianCalendarTypes) ' Public Shared Fields Public const ADEra As Integer // =1 ' Public Instance Properties Overridable Public Property CalendarType As GregorianCalendarTypes 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 AddWeeks(ByVal time As Date, ByVal weeks 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 ...
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.