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