formatHour(hour, options) {
    let timeSeparator = this.calendar(options?.locale || this.locale.name).dateFormat.timeSeparator;
    if (typeof hour === 'string' && hour.indexOf(timeSeparator) === -1) {
      timeSeparator = ':';
    }

    const date = new Date();
    if (typeof hour === 'number') {
      const split = hour.toString().split('.');
      date.setHours(split[0]);
      date.setMinutes(split[1] ? (parseFloat(`0.${split[1]}`) * 60) : 0);
    } else {
      const parts = hour.split(timeSeparator);
      date.setHours(parts[0]);
      date.setMinutes(parts[1] || 0);
    }
    return this.formatDate(date, { hour: 'numeric', minute: 'numeric' });
  }
/**
   * Formats a number into the locale hour format
   * @param {number} hour The hours to show in the current locale
   * @param {object} options Additional date formatting settings
   * @returns {string} the hours in either 24 h or 12 h format
   */
Formats a number into the locale hour format
@param {number} hour The hours to show in the current locale
@param {object} options Additional date formatting settings
@returns {string} the hours in either 24 h or 12 h format
Formats a number into the locale hour format @param { number } hour The hours to show in the current locale @param { object } options Additional date formatting settings @returns { string } the hours in either 24 h or 12 h format
formatHour(hour, options) {
    let timeSeparator = this.calendar(options?.locale || this.locale.name).dateFormat.timeSeparator;
    if (typeof hour === 'string' && hour.indexOf(timeSeparator) === -1) {
      timeSeparator = ':';
    }
    const date = new Date();
    if (typeof hour === 'number') {
      const split = hour.toString().split('.');
      date.setHours(split[0]);
      date.setMinutes(split[1] ? (parseFloat(`0.${split[1]}`) * 60) : 0);
    } else {
      const parts = hour.split(timeSeparator);
      date.setHours(parts[0]);
      date.setMinutes(parts[1] || 0);
    }
    return this.formatDate(date, { hour: 'numeric', minute: 'numeric' });
  }
formatHour ( hour , options ) { let timeSeparator = this . calendar ( options ?. locale || this . locale . name ) . dateFormat . timeSeparator ; if ( typeof hour === 'string' && hour . indexOf ( timeSeparator ) === - 1 ) { timeSeparator = ':' ; } const date = new Date ( ) ; if ( typeof hour === 'number' ) { const split = hour . toString ( ) . split ( '.' ) ; date . setHours ( split [ 0 ] ) ; date . setMinutes ( split [ 1 ] ? ( parseFloat ( ` ${ split [ 1 ] } ` ) * 60 ) : 0 ) ; } else { const parts = hour . split ( timeSeparator ) ; date . setHours ( parts [ 0 ] ) ; date . setMinutes ( parts [ 1 ] || 0 ) ; } return this . formatDate ( date , { hour : 'numeric' , minute : 'numeric' } ) ; }
Formats a number into the locale hour format
 @param {number} hour The hours to show in the current locale
 @param {object} options Additional date formatting settings
 @returns {string} the hours in either 24 h or 12 h format
Formats a number into the locale hour format @param { number } hour The hours to show in the current locale @param { object } options Additional date formatting settings @returns { string } the hours in either 24 h or 12 h format