import { Injectable } from '@angular/core';
-import * as _ from 'lodash';
+import _ from 'lodash';
@Injectable({
providedIn: 'root'
})
export class TimeDiffService {
- constructor() {}
-
calculateDuration(startDate: Date, endDate: Date): string {
const startTime = +startDate;
const endTime = +endDate;