Contents

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