Date.FormatStyle.Symbol.CyclicYear
A type that specifies a format for a cyclic year in a date format style.
Declaration
struct CyclicYearOverview
Calendars such as the Chinese lunar calendar and Hindu calendars use 60-year cycles of year names. If the calendar doesn’t provide cyclic year-name data, or if the year value to format is out of the range of years for which the system provides cyclic name data, then the formatting is numeric, as in Date.FormatStyle.Symbol.Year.
The Date.FormatStyle.Symbol.CyclicYear type includes static factory variables that create custom Date.FormatStyle.Symbol.CyclicYear objects:
Factory variable | Description |
|---|---|
A shortened representation of the cyclic year appropriate for space-constrained applications. | |
The shortest representation of the cyclic year. | |
The full representation of the cyclic year. |
If no format is specified as a parameter, the abbreviated static variable is the default format.
For more information about formatting dates, see Date.FormatStyle.
Topics
Modifying a Cyclic Year
Comparing Cyclic Years
Type Properties
See Also
Modifying Date Style Format Symbols
Date.FormatStyle.Symbol.DayDate.FormatStyle.Symbol.DayOfYearDate.FormatStyle.Symbol.DayPeriodDate.FormatStyle.Symbol.EraDate.FormatStyle.Symbol.HourDate.FormatStyle.Symbol.MinuteDate.FormatStyle.Symbol.MonthDate.FormatStyle.Symbol.QuarterDate.FormatStyle.Symbol.SecondDate.FormatStyle.Symbol.SecondFractionDate.FormatStyle.Symbol.StandaloneMonthDate.FormatStyle.Symbol.StandaloneQuarterDate.FormatStyle.Symbol.StandaloneWeekdayDate.FormatStyle.Symbol.TimeZoneDate.FormatStyle.Symbol.VerbatimHour