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

Method setTimestamp

src/utils/IntlWrapper.ts:99–107  ·  view source on GitHub ↗
(
    timestamp: number,
    style: DurationStyle = 'Duration',
    relativeTo: Date | number = Date.now(),
  )

Source from the content-addressed store, hash-verified

97
98 // For 1733320467580 (timestamp)
99 setTimestamp(
100 timestamp: number,
101 style: DurationStyle = 'Duration',
102 relativeTo: Date | number = Date.now(),
103 ) {
104 const ms = timestamp - new Date(relativeTo).getTime();
105 this.setRelativeTime(ms, 'milliseconds', style);
106 return this;
107 }
108
109 protected process(relativeTime: number, style: DurationStyle) {
110 switch (style) {

Callers 2

getRelativeNowTextMethod · 0.95

Calls 1

setRelativeTimeMethod · 0.95

Tested by

no test coverage detected