[]
Jp calendar implementation that can be configured with custom eras set.
public sealed class JapaneseCalendarEx : Calendar, ICloneable
Name | Description |
---|---|
JapaneseCalendarEx(EraInfo[]) | Initializes a new instance of the JapaneseCalendarEx class. |
JapaneseCalendarEx(Exception) |
Name | Description |
---|---|
Error |
Name | Description |
---|---|
AlgorithmType | Gets a value that indicates whether the current calendar is solar-based, lunar-based, or a combination of both. |
Eras | Gets the list of eras in the CalendarEx. |
MaxSupportedDateTime | Gets the latest date and time supported by the current JapaneseCalendarEx object. |
MinSupportedDateTime | Gets the earliest date and time supported by the current JapaneseCalendarEx object. |
TwoDigitYearMax | Gets or sets the last year of a 100-year range that can be represented by a 2-digit year. |
Name | Description |
---|---|
AddMonths(DateTime, int) | Returns a DateTime that is the specified number of months away from the specified DateTime. |
AddYears(DateTime, int) | Returns a DateTime that is the specified number of years away from the specified DateTime. |
GetDayOfMonth(DateTime) | Returns the day of the month in the specified DateTime. |
GetDayOfWeek(DateTime) | Returns the day of the week in the specified DateTime. |
GetDayOfYear(DateTime) | Returns the day of the year in the specified DateTime. |
GetDaysInMonth(int, int, int) | Returns the number of days in the specified month in the specified year in the specified era. |
GetDaysInYear(int, int) | Returns the number of days in the specified year in the specified era. |
GetEra(DateTime) | Returns the era in the specified DateTime. |
GetLeapMonth(int, int) | Calculates the leap month for a specified year and era. |
GetMonth(DateTime) | Returns the month in the specified DateTime. |
GetMonthsInYear(int, int) | Returns the number of months in the specified year in the specified era. |
GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek) | Returns the week of the year that includes the date in the specified DateTime object. |
GetYear(DateTime) | Returns the year in the specified DateTime. |
IsLeapDay(int, int, int, int) | Determines whether the specified date in the specified era is a leap day. |
IsLeapMonth(int, int, int) | Determines whether the specified month in the specified year in the specified era is a leap month. |
IsLeapYear(int, int) | Determines whether the specified year in the specified era is a leap year. |
ToDateTime(int, int, int, int, int, int, int, int) | Returns a DateTime that is set to the specified date and time in the specified era. |