Contents

Calendar

A definition of the relationships between calendar units and absolute points in time, providing features for calculation and comparison of dates.

Declaration

struct Calendar

Overview

Calendar encapsulates information about systems of reckoning time in which the beginning, length, and divisions of a year are defined. It provides information about the calendar and support for calendrical computations such as determining the range of a given calendrical unit and adding units to a given absolute time.

Topics

Creating a Calendar

Getting the User’s Calendar

Extracting Components

Getting Calendar Information

Scanning Dates

Calculating Dates from Components

Calculating Intervals

Comparing Dates

Getting AM and PM symbols

Getting Weekday Symbols

Getting Month Symbols

Getting Quarter Symbols

Getting Era Symbols

Working with notification messages

Using Reference Types

Structures

Initializers

Instance Methods

See Also

Calendrical Calculations