How to create a custom TimeFormatStyle for just seconds for a Swift Duration
With Swift’s relatively new Duration feature, there are pre-created common patterns (.hourMinute, .hourMinuteSecond, and .minuteSecond) for formatting Durations that handle hours and minutes of time, but the formats don’t work for times that are just seconds or are greater than a day.