static func relative(presentation: Presentation, unitsStyle : UnitsStyle) -> Date.RelativeFormatStyle
Returns a relative date format style based on the provided presentation and unit style.
var presentation: Date.RelativeFormatStyle.Presentation
Specifies the style to use when describing a relative date, such as “1 day ago” or “yesterday”.
var unitsStyle : Date.RelativeFormatStyle.UnitsStyle
The style to use when formatting the quantity or the name of the unit, such as “1 day ago” or “one day ago”.
単位の量または名前を書式設定する時に使う様式、たとえば “1 day ago” または “one day ago”。
var calendar: Calendar
The calendar to use when formatting relative dates.
var capitalizationContext : FormatStyleCapitalizationContext
The capitalization context to use when formatting the relative dates.
func locale(Locale) -> Date.RelativeFormatStyle
Modifies the relative date format style to use the specified locale.