MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / getSetZone

Function getSetZone

tests/test_code/js/moment/moment.js:3344–3356  ·  view source on GitHub ↗
(input, keepLocalTime)

Source from the content-addressed store, hash-verified

3342 }
3343
3344 function getSetZone(input, keepLocalTime) {
3345 if (input != null) {
3346 if (typeof input !== 'string') {
3347 input = -input;
3348 }
3349
3350 this.utcOffset(input, keepLocalTime);
3351
3352 return this;
3353 } else {
3354 return -this.utcOffset();
3355 }
3356 }
3357
3358 function setOffsetToUTC(keepLocalTime) {
3359 return this.utcOffset(0, keepLocalTime);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected