Debian Codegraph @

vendor/static/moment/src/lib/units/timezone.js

raw
1 import { addFormatToken } from '../format/format';
2
3 // FORMATTING
4
5 addFormatToken('z', 0, 0, 'zoneAbbr');
6 addFormatToken('zz', 0, 0, 'zoneName');
7
8 // MOMENTS
9
10 export function getZoneAbbr() {
11 return this._isUTC ? 'UTC' : '';
12 }
13
14 export function getZoneName() {
15 return this._isUTC ? 'Coordinated Universal Time' : '';
16 }