File

qwc/projects/qwc/src/lib/pipes/time-since.pipe.ts

Description

Time since pipe

Metadata

Name timeSince

Methods

ngOnDestroy
ngOnDestroy()

Component life cycle hook

Returns : void
transform
transform(timeStamp: number | string, type?: string, format: string)

Transform

Parameters :
Name Type Optional Default value Description
timeStamp number | string No
type string Yes

Type

format string No "simple"

Format

Returns : string

string

Static transformDate
transformDate(timeStamp: number | string, type?: string, format: string)

Transform date

Parameters :
Name Type Optional Default value Description
timeStamp number | string No

timestamp

type string Yes

Type

format string No "simple"

format

Returns : string

string

Properties

dateFormat
Type : string
destroy$
Default value : new Subject<void>()
inputTimeStamp
Type : number | string
inputType
Type : string
output
Type : string

result-matching ""

    No results matching ""