windowText(start:end:)
static func windowText(start: Date, end: Date) -> String
A readable reporting period with weekdays, in ship time: “Mon 3/21/26, 5:00 PM - Tue 3/22/26, 5:00 PM PDT”. If the period spans a time zone change, each end shows its own zone.
-
Declaration
Swift
func describe(_ date: Date) -> (text: String, zone: String)
View on GitHub