2 Commits

Author SHA1 Message Date
Tina Liu
4387ce0f10
[WIP Gregorian Calendar] Implement date(byAdding components: DateComponents, to date: Date, wrappingComponents: Bool) (#317)
* WIP: Implement `date(byAdding components: DateComponents, to date: Date, wrappingComponents: Bool)`

This largely follows ICU's calendar::add and calendar::roll.

* It takes around a minute to run these compatibility tests as of this moment. I expect it to take even longer as we add more tests to it. Disable them on CI for now. The appropriate tests should assert their expected absolute values respectively.

* Add a convenience initializer to Date.Components and use it in tests
2023-12-02 07:30:45 -08:00
Tony Parker
d942713680
Sink TimeZone, Locale, Calendar to Essentials (#266)
* Sink Locale, Calendar to Essentials

* Add a Calendar test, make sure that _lock is populated early for NSSwiftCalendar
2023-09-25 16:09:16 -07:00