Type Property 型プロパティ

offset

A style displaying a date as offset from now.

Declaration 宣言

static let offset: Text.DateStyle

Discussion 議論


Text(event.startDate, style: .offset)

Example output: +2 hours -3 months

See Also 参照

Getting Text Date Styles