tryParseTimezoneDefinition(text) {
    if (momentTz.tz.names().includes(text)) {
      return [{ amount: text, shiftType: ShiftTypes.timezone }];
    }

    return null;
  }
/**
   * Tries to parse a timezone definition from text.
   * @param  {string}          text the text to parse
   * @return {(Array | null)}       array of objects containing the shift type and amount, or null if unsuccessful
   */
Tries to parse a timezone definition from text.
@param  {string}          text the text to parse
@return {(Array | null)}       array of objects containing the shift type and amount, or null if unsuccessful
Tries to parse a timezone definition from text . @param { string } text the text to parse @return { ( Array | null ) } array of objects containing the shift type and amount or null if unsuccessful
tryParseTimezoneDefinition(text) {
    if (momentTz.tz.names().includes(text)) {
      return [{ amount: text, shiftType: ShiftTypes.timezone }];
    }
    return null;
  }
tryParseTimezoneDefinition ( text ) { if ( momentTz . tz . names ( ) . includes ( text ) ) { return [ { amount : text , shiftType : ShiftTypes . timezone } ] ; } return null ; }
Tries to parse a timezone definition from text.
Tries to parse a timezone definition from text .