class EastAsianLunisolarCalendar
in global :: System . Globalization
Represents a calendar that divides time into months, days, years, and eras, and has dates that are based on cycles of the sun and the moon.
public DateTime AddMonths( DateTime time, int months )
Calculates the date that is the specified number of months away from the specified date.
timeThe to which to add .monthsThe number of months to add.- Returns A new that results from adding the specified number of months to the parameter.
public DateTime AddYears( DateTime time, int years )
Calculates the date that is the specified number of years away from the specified date.
timeThe to which to add .yearsThe number of years to add.- Returns A new that results from adding the specified number of years to the parameter.
public CalendarAlgorithmType AlgorithmType { get; }
Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.
- Returns Always returns .
public int GetCelestialStem( int sexagenaryYear )
Calculates the celestial stem of the specified year in the sexagenary (60-year) cycle.
sexagenaryYearAn integer from 1 through 60 that represents a year in the sexagenary cycle.- Returns A number from 1 through 10.
public int GetDayOfMonth( DateTime time )
Calculates the day of the month in the specified date.
timeThe to read.- Returns An integer from 1 through 31 that represents the day of the month specified in the parameter.
public DayOfWeek GetDayOfWeek( DateTime time )
Calculates the day of the week in the specified date.
timeThe to read.- Returns One of the values that represents the day of the week specified in the parameter.
public int GetDayOfYear( DateTime time )
Calculates the day of the year in the specified date.
timeThe to read.- Returns An integer from 1 through 354 in a common year, or 1 through 384 in a leap year, that represents the day of the year specified in the parameter.
public int GetDaysInMonth( int year, int month, int era )
Calculates the number of days in the specified month of the specified year and era.
yearAn integer that represents the year.monthAn integer from 1 through 12 in a common year, or 1 through 13 in a leap year, that represents the month.eraAn integer that represents the era.- Returns The number of days in the specified month of the specified year and era.
public int GetDaysInYear( int year, int era )
Calculates the number of days in the specified year and era.
yearAn integer that represents the year.eraAn integer that represents the era.- Returns The number of days in the specified year and era.
public int GetLeapMonth( int year, int era )
Calculates the leap month for the specified year and era.
yearAn integer that represents the year.eraAn integer that represents the era.- Returns A positive integer from 1 through 13 that indicates the leap month in the specified year and era. -or- Zero if this calendar does not support a leap month, or if the and parameters do not specify a leap year.
public int GetMonth( DateTime time )
Returns the month in the specified date.
timeThe to read.- Returns An integer from 1 to 13 that represents the month specified in the parameter.
public int GetMonthsInYear( int year, int era )
Calculates the number of months in the specified year and era.
yearAn integer that represents the year.eraAn integer that represents the era.- Returns The number of months in the specified year in the specified era. The return value is 12 months in a common year or 13 months in a leap year.
public int GetSexagenaryYear( DateTime time )
Calculates the year in the sexagenary (60-year) cycle that corresponds to the specified date.
timeA to read.- Returns A number from 1 through 60 in the sexagenary cycle that corresponds to the parameter.
public int GetTerrestrialBranch( int sexagenaryYear )
Calculates the terrestrial branch of the specified year in the sexagenary (60-year) cycle.
sexagenaryYearAn integer from 1 through 60 that represents a year in the sexagenary cycle.- Returns An integer from 1 through 12.
public int GetYear( DateTime time )
Returns the year in the specified date.
timeThe to read.- Returns An integer that represents the year in the specified .
public bool IsLeapDay( int year, int month, int day, int era )
Determines whether the specified date in the specified era is a leap day.
yearAn integer that represents the year.monthAn integer from 1 through 13 that represents the month.dayAn integer from 1 through 31 that represents the day.eraAn integer that represents the era.- Returns if the specified day is a leap day; otherwise, .
public bool IsLeapMonth( int year, int month, int era )
Determines whether the specified month in the specified year and era is a leap month.
yearAn integer that represents the year.monthAn integer from 1 through 13 that represents the month.eraAn integer that represents the era.- Returns if the parameter is a leap month; otherwise, .
public bool IsLeapYear( int year, int era )
Determines whether the specified year in the specified era is a leap year.
yearAn integer that represents the year.eraAn integer that represents the era.- Returns if the specified year is a leap year; otherwise, .
public DateTime ToDateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, int era )
Returns a that is set to the specified date, time, and era.
yearAn integer that represents the year.monthAn integer from 1 through 13 that represents the month.dayAn integer from 1 through 31 that represents the day.hourAn integer from 0 through 23 that represents the hour.minuteAn integer from 0 through 59 that represents the minute.secondAn integer from 0 through 59 that represents the second.millisecondAn integer from 0 through 999 that represents the millisecond.eraAn integer that represents the era.- Returns A that is set to the specified date, time, and era.
public int ToFourDigitYear( int year )
Converts the specified year to a four-digit year.
yearA two-digit or four-digit integer that represents the year to convert.- Returns An integer that contains the four-digit representation of the parameter.
public int TwoDigitYearMax { get; set; }
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
- Returns The last year of a 100-year range that can be represented by a 2-digit year.
public int GetMinute( DateTime time )
😔 No documentation found.
public int GetMonthsInYear( int year )
😔 No documentation found.
public int GetSecond( DateTime time )
😔 No documentation found.
public int GetWeekOfYear( DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek )
😔 No documentation found.
public bool IsLeapDay( int year, int month, int day )
😔 No documentation found.
public int GetHour( DateTime time )
😔 No documentation found.
public double GetMilliseconds( DateTime time )
😔 No documentation found.
public bool IsLeapYear( int year )
😔 No documentation found.
public DateTime ToDateTime( int year, int month, int day, int hour, int minute, int second, int millisecond )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool IsLeapMonth( int year, int month )
😔 No documentation found.
public int GetLeapMonth( int year )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public int GetEra( DateTime time )
😔 No documentation found.
public int GetDaysInYear( int year )
😔 No documentation found.
public int GetDaysInMonth( int year, int month )
😔 No documentation found.
public DateTime AddWeeks( DateTime time, int weeks )
😔 No documentation found.
public DateTime AddSeconds( DateTime time, int seconds )
😔 No documentation found.
public DateTime AddMinutes( DateTime time, int minutes )
😔 No documentation found.
public DateTime AddHours( DateTime time, int hours )
😔 No documentation found.
public DateTime AddDays( DateTime time, int days )
😔 No documentation found.
public DateTime AddMilliseconds( DateTime time, double milliseconds )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public bool IsReadOnly { get; }
😔 No documentation found.
public DateTime MaxSupportedDateTime { get; }
😔 No documentation found.
public DateTime MinSupportedDateTime { get; }
😔 No documentation found.
public int[] Eras { get; }
😔 No documentation found.
public object Clone( )
😔 No documentation found.