davedelong / time

Robust and type-safe date and time calculations for Swift
MIT License
2.32k stars 77 forks source link

Better support for weeks #68

Open davedelong opened 6 months ago

davedelong commented 6 months ago

Desired functionality:

davedelong commented 5 months ago

Thinking about this some more, I think I could get away with an actual Week unit type; it would be GTOEDay and LTOEMonth. It would require significant verification that the current generic extensions to Fixed<Unit> apply correctly.

However, it would mean that it should get most functionality "for free".