MCPcopy
hub / github.com/date-fns/date-fns / setTime

Method setTime

pkgs/tz/src/date/mini.js:100–108  ·  view source on GitHub ↗
(_time)

Source from the content-addressed store, hash-verified

98 //#region time
99
100 setTime(_time) {
101 // Use the native `setTime` to the external date time.
102 Date.prototype.setTime.apply(this, arguments);
103
104 // Then apply it to the internal date adjusting to the timezone offset.
105 syncToInternal(this);
106
107 return +this;
108 }
109
110 //#endregion
111

Callers 5

constructorMethod · 0.95
addMinutesFunction · 0.80
constructorMethod · 0.80
tests.tsFile · 0.80
syncToInternalFunction · 0.80

Calls 1

syncToInternalFunction · 0.85

Tested by

no test coverage detected