deep-linking-sample/Apps/Wikipedia/WMF Framework/WMFFeedOnThisDayEvent+LocalizedDates.swift

7 lines
258 B
Swift
Raw Normal View History

extension WMFFeedOnThisDayEvent {
// Returns year string - i.e. '1000' (for AD) or '200 BC'. (Negative years are 'BC')
public var yearString: String? {
return DateFormatter.wmf_yearString(for: year?.intValue ?? 0, with: languageCode)
}
}