ChineseLunisolarCalendar Classe
Definição
Representa a hora em divisões, como dias, meses e anos.Represents time in divisions, such as months, days, and years. Os anos são calculados usando o calendário chinês, enquanto os dias e meses são calculados usando o calendário lunissolar.Years are calculated using the Chinese calendar, while days and months are calculated using the lunisolar calendar.
public ref class ChineseLunisolarCalendar : System::Globalization::EastAsianLunisolarCalendar
public class ChineseLunisolarCalendar : System.Globalization.EastAsianLunisolarCalendar
[System.Serializable]
public class ChineseLunisolarCalendar : System.Globalization.EastAsianLunisolarCalendar
type ChineseLunisolarCalendar = class
inherit EastAsianLunisolarCalendar
[<System.Serializable>]
type ChineseLunisolarCalendar = class
inherit EastAsianLunisolarCalendar
Public Class ChineseLunisolarCalendar
Inherits EastAsianLunisolarCalendar
- Herança
- Atributos
Comentários
A ChineseLunisolarCalendar classe é derivada da EastAsianLunisolarCalendar classe, que representa o calendário lunisolar.The ChineseLunisolarCalendar class is derived from the EastAsianLunisolarCalendar class, which represents the lunisolar calendar. A EastAsianLunisolarCalendar classe dá suporte ao ciclo de ano Sexagenary (que se repete a cada 60 anos), além de anos solares e meses lunares.The EastAsianLunisolarCalendar class supports the sexagenary year cycle (which repeats every 60 years) in addition to solar years and lunar months. Cada ano solar no calendário é associado a um ano Sexagenary, uma haste celestes e uma ramificação terrestre, e esses calendários podem ter meses bissextos após qualquer mês do ano.Each solar year in the calendar is associated with a Sexagenary Year, a Celestial Stem, and a Terrestrial Branch, and these calendars can have leap months after any month of the year. A ChineseLunisolarCalendar classe calcula anos com base em cálculos solares e meses e dias com base em cálculos lunares.The ChineseLunisolarCalendar class calculates years based on solar calculations, and months and days based on lunar calculations.
Observação
Para obter informações sobre como usar a ChineseLunisolarCalendar classe e as outras classes de calendário no .NET Framework, consulte trabalhando com calendários.For information about using the ChineseLunisolarCalendar class and the other calendar classes in the .NET Framework, see Working with Calendars.
Um mês bissexto pode ocorrer após qualquer mês em um ano.A leap month can occur after any month in a year. Por exemplo, o GetMonth método retorna um número entre 1 e 13 que indica o mês associado a uma data especificada.For example, the GetMonth method returns a number between 1 and 13 that indicates the month associated with a specified date. Se houver um mês bissexto entre o oitavo e o nono meses do ano, o GetMonth método retornará 8 para o oitavo mês, 9 para o oitavo mês e 10 para o nono mês.If there is a leap month between the eighth and ninth months of the year, the GetMonth method returns 8 for the eighth month, 9 for the leap eighth month, and 10 for the ninth month.
Atualmente, o ChineseLunisolarCalendar não é usado por nenhuma das culturas suportadas pela CultureInfo classe.Currently, the ChineseLunisolarCalendar is not used by any of the cultures supported by the CultureInfo class. Portanto, essa classe pode ser usada apenas para calcular datas no calendário chinês lunisolar.Therefore, this class can be used only to calculate dates in the Chinese lunisolar calendar.
Cada CultureInfo objeto dá suporte a um conjunto de calendários.Each CultureInfo object supports a set of calendars. A Calendar propriedade retorna o calendário padrão para a cultura e a OptionalCalendars propriedade retorna uma matriz que contém todos os calendários com suporte na cultura.The Calendar property returns the default calendar for the culture, and the OptionalCalendars property returns an array containing all the calendars supported by the culture. Para alterar o calendário usado por um CultureInfo , o aplicativo deve definir a Calendar propriedade de CultureInfo.DateTimeFormat como um novo Calendar .To change the calendar used by a CultureInfo, the application should set the Calendar property of CultureInfo.DateTimeFormat to a new Calendar.
Construtores
| ChineseLunisolarCalendar() |
Inicializa uma nova instância da classe ChineseLunisolarCalendar.Initializes a new instance of the ChineseLunisolarCalendar class. |
Campos
| ChineseEra |
Especifica a era que corresponde ao objeto ChineseLunisolarCalendar atual.Specifies the era that corresponds to the current ChineseLunisolarCalendar object. |
| CurrentEra |
Representa a era atual do calendário atual.Represents the current era of the current calendar. O valor desse campo é 0.The value of this field is 0. (Herdado de Calendar) |
Propriedades
| AlgorithmType |
Obtém um valor que indica se o calendário atual é solar, lunar ou uma combinação de ambos.Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both. (Herdado de EastAsianLunisolarCalendar) |
| DaysInYearBeforeMinSupportedYear |
Obtém o número de dias do ano que precede o ano especificado pela propriedade MinSupportedDateTime.Gets the number of days in the year that precedes the year that is specified by the MinSupportedDateTime property. |
| DaysInYearBeforeMinSupportedYear |
Obtém o número de dias do ano que precede o ano especificado pela propriedade MinSupportedDateTime.Gets the number of days in the year that precedes the year that is specified by the MinSupportedDateTime property. (Herdado de Calendar) |
| Eras |
Obtém as eras que correspondem ao intervalo de datas e horas com suporte no objeto ChineseLunisolarCalendar atual.Gets the eras that correspond to the range of dates and times supported by the current ChineseLunisolarCalendar object. |
| IsReadOnly |
Obtém um valor que indica se esse objeto Calendar é somente leitura.Gets a value indicating whether this Calendar object is read-only. (Herdado de Calendar) |
| MaxSupportedDateTime |
Obtém a data e hora máxima com suporte pela classe ChineseLunisolarCalendar.Gets the maximum date and time supported by the ChineseLunisolarCalendar class. |
| MinSupportedDateTime |
Obtém a data e hora mínima com suporte pela classe ChineseLunisolarCalendar.Gets the minimum date and time supported by the ChineseLunisolarCalendar class. |
| TwoDigitYearMax |
Obtém ou define o último ano de um intervalo de 100 anos que pode ser representado por um ano de dois dígitos.Gets or sets the last year of a 100-year range that can be represented by a 2-digit year. (Herdado de EastAsianLunisolarCalendar) |
Métodos
| AddDays(DateTime, Int32) |
Retorna um DateTime que é o número especificado de dias à frente do DateTime indicado.Returns a DateTime that is the specified number of days away from the specified DateTime. (Herdado de Calendar) |
| AddHours(DateTime, Int32) |
Retorna um DateTime que é o número especificado de horas à frente do DateTime indicado.Returns a DateTime that is the specified number of hours away from the specified DateTime. (Herdado de Calendar) |
| AddMilliseconds(DateTime, Double) |
Retorna um DateTime que é o número especificado de milissegundos à frente do DateTime indicado.Returns a DateTime that is the specified number of milliseconds away from the specified DateTime. (Herdado de Calendar) |
| AddMinutes(DateTime, Int32) |
Retorna um DateTime que é o número especificado de minutos à frente do DateTime indicado.Returns a DateTime that is the specified number of minutes away from the specified DateTime. (Herdado de Calendar) |
| AddMonths(DateTime, Int32) |
Calcula a data que é o número de meses de distância especificado da data especificada.Calculates the date that is the specified number of months away from the specified date. (Herdado de EastAsianLunisolarCalendar) |
| AddSeconds(DateTime, Int32) |
Retorna um DateTime que é o número especificado de segundos à frente do DateTime indicado.Returns a DateTime that is the specified number of seconds away from the specified DateTime. (Herdado de Calendar) |
| AddWeeks(DateTime, Int32) |
Retorna um DateTime que é o número especificado de semanas à frente do DateTime indicado.Returns a DateTime that is the specified number of weeks away from the specified DateTime. (Herdado de Calendar) |
| AddYears(DateTime, Int32) |
Calcula a data que é o número de anos de distância especificado da data especificada.Calculates the date that is the specified number of years away from the specified date. (Herdado de EastAsianLunisolarCalendar) |
| Clone() |
Cria um novo objeto que é uma cópia do objeto Calendar atual.Creates a new object that is a copy of the current Calendar object. (Herdado de Calendar) |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetCelestialStem(Int32) |
Calcula o tronco celestiais do ano especificado no ciclo sexagesimal (60 anos).Calculates the celestial stem of the specified year in the sexagenary (60-year) cycle. (Herdado de EastAsianLunisolarCalendar) |
| GetDayOfMonth(DateTime) |
Calcula o dia do mês na data especificada.Calculates the day of the month in the specified date. (Herdado de EastAsianLunisolarCalendar) |
| GetDayOfWeek(DateTime) |
Calcula o dia da semana na data especificada.Calculates the day of the week in the specified date. (Herdado de EastAsianLunisolarCalendar) |
| GetDayOfYear(DateTime) |
Calcula o dia do ano na data especificada.Calculates the day of the year in the specified date. (Herdado de EastAsianLunisolarCalendar) |
| GetDaysInMonth(Int32, Int32) |
Retorna o número de dias no mês e ano especificados da era atual.Returns the number of days in the specified month and year of the current era. (Herdado de Calendar) |
| GetDaysInMonth(Int32, Int32, Int32) |
Calcula o número de dias no mês especificado do ano e era especificados.Calculates the number of days in the specified month of the specified year and era. (Herdado de EastAsianLunisolarCalendar) |
| GetDaysInYear(Int32) |
Retorna o número de dias no ano especificado da era atual.Returns the number of days in the specified year of the current era. (Herdado de Calendar) |
| GetDaysInYear(Int32, Int32) |
Calcula o número de dias no ano e era especificados.Calculates the number of days in the specified year and era. (Herdado de EastAsianLunisolarCalendar) |
| GetEra(DateTime) |
Recupera a era que corresponde ao tipo DateTime especificado.Retrieves the era that corresponds to the specified DateTime type. |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetHour(DateTime) |
Retorna o valor de horas no DateTime especificado.Returns the hours value in the specified DateTime. (Herdado de Calendar) |
| GetLeapMonth(Int32) |
Calcula o mês bissexto de um ano especificado.Calculates the leap month for a specified year. (Herdado de Calendar) |
| GetLeapMonth(Int32, Int32) |
Calcula o mês bissexto do ano e era especificados.Calculates the leap month for the specified year and era. (Herdado de EastAsianLunisolarCalendar) |
| GetMilliseconds(DateTime) |
Retorna o valor de milissegundos no DateTime especificado.Returns the milliseconds value in the specified DateTime. (Herdado de Calendar) |
| GetMinute(DateTime) |
Retorna o valor de minutos no DateTime especificado.Returns the minutes value in the specified DateTime. (Herdado de Calendar) |
| GetMonth(DateTime) |
Retorna o mês na data especificada.Returns the month in the specified date. (Herdado de EastAsianLunisolarCalendar) |
| GetMonthsInYear(Int32) |
Retorna o número de meses no ano especificado na era atual.Returns the number of months in the specified year in the current era. (Herdado de Calendar) |
| GetMonthsInYear(Int32, Int32) |
Calcula o número de meses no ano e era especificados.Calculates the number of months in the specified year and era. (Herdado de EastAsianLunisolarCalendar) |
| GetSecond(DateTime) |
Retorna o valor de segundos no DateTime especificado.Returns the seconds value in the specified DateTime. (Herdado de Calendar) |
| GetSexagenaryYear(DateTime) |
Calcula o ano no ciclo sexagesimal (60 anos) que corresponde à data especificada.Calculates the year in the sexagenary (60-year) cycle that corresponds to the specified date. (Herdado de EastAsianLunisolarCalendar) |
| GetTerrestrialBranch(Int32) |
Calcula o branch terrestre do ano especificado no ciclo sexagesimal (60 anos).Calculates the terrestrial branch of the specified year in the sexagenary (60-year) cycle. (Herdado de EastAsianLunisolarCalendar) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek) |
Retorna a semana do ano que inclui a data no valor DateTime especificado.Returns the week of the year that includes the date in the specified DateTime value. (Herdado de Calendar) |
| GetYear(DateTime) |
Retorna o ano na data especificada.Returns the year in the specified date. (Herdado de EastAsianLunisolarCalendar) |
| IsLeapDay(Int32, Int32, Int32) |
Determina se a data especificada na era atual é um dia bissexto.Determines whether the specified date in the current era is a leap day. (Herdado de Calendar) |
| IsLeapDay(Int32, Int32, Int32, Int32) |
Determina se a data especificada na era especificada é um dia bissexto.Determines whether the specified date in the specified era is a leap day. (Herdado de EastAsianLunisolarCalendar) |
| IsLeapMonth(Int32, Int32) |
Determina se o mês especificado no ano especificado na era atual é um mês bissexto.Determines whether the specified month in the specified year in the current era is a leap month. (Herdado de Calendar) |
| IsLeapMonth(Int32, Int32, Int32) |
Determina se o mês especificado no ano e a era especificados é um mês bissexto.Determines whether the specified month in the specified year and era is a leap month. (Herdado de EastAsianLunisolarCalendar) |
| IsLeapYear(Int32) |
Determina se o ano especificado na era atual é um ano bissexto.Determines whether the specified year in the current era is a leap year. (Herdado de Calendar) |
| IsLeapYear(Int32, Int32) |
Determina se o ano especificado na era especificada é um ano bissexto.Determines whether the specified year in the specified era is a leap year. (Herdado de EastAsianLunisolarCalendar) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Retorna um DateTime que é definido como a data e hora especificadas na era atual.Returns a DateTime that is set to the specified date and time in the current era. (Herdado de Calendar) |
| ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Retorna um DateTime que é definido para a data, hora e era especificadas.Returns a DateTime that is set to the specified date, time, and era. (Herdado de EastAsianLunisolarCalendar) |
| ToFourDigitYear(Int32) |
Converte um ano especificado em um ano de quatro dígitos.Converts the specified year to a four-digit year. (Herdado de EastAsianLunisolarCalendar) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |