EastAsianLunisolarCalendar.GetDayOfYear(DateTime) Método
Definição
Calcula o dia do ano na data especificada.Calculates the day of the year in the specified date.
public:
override int GetDayOfYear(DateTime time);
public override int GetDayOfYear (DateTime time);
override this.GetDayOfYear : DateTime -> int
Public Overrides Function GetDayOfYear (time As DateTime) As Integer
Parâmetros
Retornos
Um número inteiro de 1 a 354 em um ano comuns ou 1 a 384 em um ano bissexto, que representa o dia do ano especificado no parâmetro time.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 time parameter.
Comentários
O dia do ano é definido como o número de dias do primeiro dia do ano.The day of the year is defined as the number of days from the first day of the year. Por exemplo, GetDayOfYear para o primeiro dia do primeiro mês retorna 1 e, GetDayOfYear para o último dia do último mês, retorna o número total de dias nesse ano, que é o mesmo valor retornado por GetDaysInYear .For example, GetDayOfYear for the first day of the first month returns 1, and GetDayOfYear for the last day of the last month returns the total number of days in that year, which is the same value returned by GetDaysInYear.