DateInterval Enumeração
Definição
Indica como determinar e formatar intervalos de datas ao chamar funções relacionadas a datas.Indicates how to determine and format date intervals when calling date-related functions.
public enum class DateInterval
public enum DateInterval
type DateInterval =
Public Enum DateInterval
- Herança
Campos
| Day | 4 | Dia do mês (de 1 a 31)Day of month (1 through 31) |
| DayOfYear | 3 | Dia do ano (de 1 a 366)Day of year (1 through 366) |
| Hour | 7 | Hora (de 0 a 23)Hour (0 through 23) |
| Minute | 8 | Minuto (de 0 a 59)Minute (0 through 59) |
| Month | 2 | Mês (de 1 a 12)Month (1 through 12) |
| Quarter | 1 | Trimestre do ano (de 1 a 4)Quarter of year (1 through 4) |
| Second | 9 | Segundo (de 0 a 59)Second (0 through 59) |
| Weekday | 6 | Dia da semana (de 1 a 7)Day of week (1 through 7) |
| WeekOfYear | 5 | Semana do ano (de 1 a 53)Week of year (1 through 53) |
| Year | 0 | YearYear |
Comentários
Quando você chama funções relacionadas a data, pode usar membros de enumeração em seu código no lugar dos valores reais.When you call date-related functions, you can use enumeration members in your code in place of the actual values.
A DateInterval enumeração define constantes usadas com funções relacionadas à data para identificar como os intervalos de datas são determinados e formatados.The DateInterval enumeration defines constants used with date-related functions to identify how date intervals are determined and formatted. Para obter um exemplo, consulte o DatePart método.For an example, see the DatePart method.
Aplica-se a
Confira também
- DateFormat
- DueDate
- DatePart(DateInterval, DateTime, FirstDayOfWeek, FirstWeekOfYear)
- DateAdd(DateInterval, Double, DateTime)
- DateDiff(DateInterval, DateTime, DateTime, FirstDayOfWeek, FirstWeekOfYear)
- Constantes e enumeraçõesConstants and Enumerations
- Quando usar uma enumeraçãoWhen to Use an Enumeration
- Como fazer referência a um membro de enumeraçãoHow to: Refer to an Enumeration Member