KoreanCalendar

KoreanCalendar


Provides functions to manipulate Korean dates.


Implements:

Calendar 
ICloneable 
IObject 

Public:

Properties:

NameDescription
 AlgorithmType (get) Gets a value that indicates whether the current calendar is solar-based, lunar-based, or a combination of both.  
 Eras (get) Gets a list of eras in the KoreanCalendar.  
 IsReadOnly (get) Gets a value indicating whether this KoreanCalendar object is read-only.  
 MaxSupportedDateTime (get) Gets the latest date and time supported by the KoreanCalendar class.  
 MinSupportedDateTime (get) Gets the earliest date and time supported by the KoreanCalendar class.  
 TwoDigitYearMax (get) Gets the last year of a 100-year range that can be represented by a 2-digit year.  
 TwoDigitYearMax (let) Sets the last year of a 100-year range that can be represented by a 2-digit year.

InvalidOperationException In a set operation, the current instance is read-only.

This property allows a 2-digit year to be properly translated to a 4-digit year. For example, in the Gregorian calendar, if this property is set to 2029, the 100-year range is from 1930 to 2029. Therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.

The initial value of this property is derived from the settings in the regional and language options portion of Control Panel. However, that information can change during the life of the application. The KoreanCalendar class does not detect changes in the system settings automatically.

The application should set this value to 99 to indicate that 2-digit years are to be taken literally. For example, if this property is set to 99, the 100-year range is from 0 (not a valid value for most calendars) to 99. Therefore, a 2-digit value of 30 is interpreted as 30.

 

Methods:

NameDescription
 AddDays Returns a CorDateTime that is the specified number of days away from the specified CorDateTime.  
 AddHours Returns a CorDateTime this is the specified number of hours from the original Time.  
 AddMilliseconds Returns a CorDateTime this is the specified number of Milliseconds from the original Time.  
 AddMinutes Returns a CorDateTime this is the specified number of Minutes from the original Time.  
 AddMonths Returns a CorDateTime this is the specified number of Months from the original Time.  
 AddSeconds Returns a CorDateTime this is the specified number of Seconds from the original Time.  
 AddWeeks Returns a CorDateTime this is the specified number of Weeks from the original Time.  
 AddYears Returns a CorDateTime this is the specified number of Years from the original Time.  
 Clone Creates a new object that is a copy of the current KoreanCalendar object.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 GetDayOfMonth Returns the day of the months for the specified date.  
 GetDayOfWeek Returns the DayOfWeek enum of the specified date.  
 GetDayOfYear Returns the day of the year for the specified date.  
 GetDaysInMonth Returns the number of days in the specified month.  
 GetDaysInYear Returns the number of days in the specified year.  
 GetEra Returns the era in the specified CorDateTime.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 GetHour Returns the hour of the specified time.  
 GetLeapMonth Calculates the leap month for a specified year and era.  
 GetMilliseconds Returns the milliseconds of the specified time.  
 GetMinute Returns the minute of the specified time.  
 GetMonth Returns the month of the specified time.  
 GetMonthsInYear Returns the number of months in the specified year.  
 GetSecond Returns the second of the specified time.  
 GetWeekOfYear Returns the week of the year that the specified date belongs to.  
 GetYear Returns the year of the specified time.  
 IsLeapDay Returns a boolean indicating if the specific day is a leap day.  
 IsLeapMonth Returns a boolean indicating if the specific month is a leap month.  
 IsLeapYear Returns a boolean indicating if the specific year is a leap year.  
 ToDateTime Returns a Gregorian CorDateTime computed using the specific calendar rules.  
 ToFourDigitYear Returns a 4-digit year from a 2-digit number.  
 ToString Returns a string representation of this object instance.  

See Also

Project CorLib Overview

Class KoreanCalendar Overview

KoreanStatic

Calendar