UNPKG

ng-time-past-pipe

Version:

Reactive textual representation of the time that has been passed between a given date and now in your Angular App.

19 lines (18 loc) 827 B
import { TimeDiffGenerator } from './time-diff'; import { TAInput } from './time-past'; import * as i0 from "@angular/core"; export declare class TimePastService { private readonly timeDiffGenerator; constructor(timeDiffGenerator: TimeDiffGenerator); /** * Transform anything that can be parsed to a Date in the past, to a string that represent the relative * time that has been passed between now and this point of time. * * @param value A value that can be parsed to a Date in the past * @return The textual representation of the time that has been passed between the given Date * and the current. */ timePast(value: TAInput): string; static ɵfac: i0.ɵɵFactoryDeclaration<TimePastService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TimePastService>; }