current
The user’s current calendar.
Declaration
class var current: Calendar { get }Return Value
The logical calendar for the current user.
Discussion
The returned calendar is formed from the settings for the current user’s chosen system locale overlaid with any custom settings the user has specified in System Preferences. Settings you get from this calendar do not change as System Preferences are changed, so that your operations are consistent (contrast with autoupdatingCurrent).
See Also
Related Documentation
- Date and Time Programming Guide
- Data Formatting Guide
init(calendarIdentifier:)calendarIdentifier