MCPcopy Index your code
hub / github.com/MALSync/MALSync / getLastText

Method getLastText

src/utils/progress.ts:78–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 getLastText() {
79 const timestamp = Number(this.getLastTimestamp());
80 if (Number.isNaN(timestamp)) return '';
81 const dt = new IntlDateTime(Number(timestamp));
82 const time = dt.getRelativeNowText('Progress', { style: 'long' });
83 if (!dt.isValidDate()) return '';
84 if (dt.isNow()) return api.storage.lang('bookmarksItem_now');
85 return api.storage.lang(`prediction_Last_${this.type}`, [time]);
86 }
87
88 getAuto() {
89 const preT = this.getPrediction();

Callers 1

getAutoTextMethod · 0.95

Calls 5

getLastTimestampMethod · 0.95
getRelativeNowTextMethod · 0.95
isValidDateMethod · 0.95
isNowMethod · 0.95
langMethod · 0.80

Tested by

no test coverage detected