I'm working on a new server-side Swift app. Developing on my Mac, I was able to use
DateIntervalFormatter easily, but when I deployed to a Linux server, there were a few issues. First, and less important, the
Style enum has mismatched values:
On the Mac, these are
More importantly, of course, is that the class itself isn't implemented. I looked into writing it myself, hoping to be able to forward to
DateFormatter for most of the locale complexity, but
DateIntervalFormatter seems to be a bit more complicated than that. I think implementing it myself is a bit above my head, but I wanted to start a thread for discussion and somewhat formally ask for an implementation of this class. If I'm reading the status page right, this is one of the last pieces we need for full implementations of all the date/time parts of Foundation.