MCPcopy Index your code
hub / github.com/csev/py4e / offset

Function offset

code/gmane/Chart.bundle.js:3078–3088  ·  view source on GitHub ↗
(token, separator)

Source from the content-addressed store, hash-verified

3076 }
3077
3078 function offset (token, separator) {
3079 addFormatToken(token, 0, 0, function () {
3080 var offset = this.utcOffset();
3081 var sign = '+';
3082 if (offset < 0) {
3083 offset = -offset;
3084 sign = '-';
3085 }
3086 return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
3087 });
3088 }
3089
3090 offset('Z', ':');
3091 offset('ZZ', '');

Callers 1

Chart.bundle.jsFile · 0.70

Calls 2

addFormatTokenFunction · 0.85
zeroFillFunction · 0.85

Tested by

no test coverage detected