(style: DurationStyle = 'Duration', options?: DurationFormatOptions)
| 269 | } |
| 270 | |
| 271 | getRelativeNowFriendlyText(style: DurationStyle = 'Duration', options?: DurationFormatOptions) { |
| 272 | if (!this.isValidDate()) return ''; |
| 273 | if (this.isNow()) return api.storage.lang('bookmarksItem_now'); |
| 274 | const timeString = this.getRelativeNowText(style, options); |
| 275 | return this.isFuture() ? timeString : api.storage.lang('bookmarksItem_ago', [timeString]); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | // Utility for exporting |
no test coverage detected