Skip to content

[Suggestion] ISO standard weekday indexing #1474

@BrentMifsud

Description

@BrentMifsud

Is your feature request related to a problem? Please describe.

Most languages have dates indexed from Monday to Sunday (following iso standards).
Swift's Calendar apis are indexed Sunday to Saturday.

Describe the solution you'd like

Most backwards compatible solution:

  • add an isoWeekday property to DateComponents

Probably the more correct solution:

  • when using an iso8601 calendar, weekdays should be indexed following iso standards

Additional context
Add any other context about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions