Contents

Date.FormatStyle.Symbol.CyclicYear

A type that specifies a format for a cyclic year in a date format style.

Declaration

struct CyclicYear

Overview

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

Abbreviated

A shortened representation of the cyclic year appropriate for space-constrained applications.

Narrow

The shortest representation of the cyclic year.

Wide

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