Calendar

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.

iOS
8.0+
macOS
10.10+
tvOS
9.0+
watchOS
2.0+
struct Calendar