// Angular Core
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'strTimeChart',
  standalone: false
})
export class StrTimeChartPipe implements PipeTransform {

  transform(value: string, ...args: unknown[]): string {
    /**
    * removes the :00 of the cutoff time
    * @param {String} input
    * @returns {String}
    */
    let input = value;
    var arr = input.split(':');
    var arr2 = arr[1].split(' ');
    var final = arr[0] + ' ' + arr2[1];
    return final;
  }

}
