import { Pipe , PipeTransform } from '@angular/core' ; import { TimeUtils } from 'src/app/Utils/TimeUtils' ; @ Pipe ( { name : 'formatDate' } ) export class FormatDatePipe implements PipeTransform { transform ( value ) { return TimeUtils . getDuration ( value ) ; } }