(token, separator)
| 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', ''); |
no test coverage detected