(options: Intl.DateTimeFormatOptions = { dateStyle: 'medium' })
| 257 | } |
| 258 | |
| 259 | getDateTimeText(options: Intl.DateTimeFormatOptions = { dateStyle: 'medium' }) { |
| 260 | if (!isValidDate(this.date)) return ''; |
| 261 | return new Intl.DateTimeFormat(this.locale, options).format(this.date); |
| 262 | } |
| 263 | |
| 264 | getRelativeNowText(style: DurationStyle = 'Duration', options?: DurationFormatOptions) { |
| 265 | if (!this.isValidDate()) return ''; |
no test coverage detected