Interface TimeagoStatic

Index

Call signatures

Properties

Methods

Call signatures

(timestamp: Date): string

Parameters

  • timestamp: Date

Returns

string

(timestamp: number): string

Parameters

  • timestamp: number

Returns

string

(timestamp: string): string

Parameters

  • timestamp: string

Returns

string

(timestamp: Element): string

Parameters

  • timestamp: Element

Returns

string

(timestamp: JQuery): string

Parameters

Returns

string

Properties

public settings: TimeagoSetings

Methods

public datetime(element: Element): Date

Parameters

  • element: Element

Returns

Date

public datetime(element: JQuery): Date

Parameters

Returns

Date

public inWords(distanceMillis: Date): string

Parameters

  • distanceMillis: Date

Returns

string

public inWords(distanceMillis: number): string

Parameters

  • distanceMillis: number

Returns

string

public isTime(element: Element): boolean

Parameters

  • element: Element

Returns

boolean

public isTime(element: JQuery): boolean

Parameters

Returns

boolean

public parse(iso8601: string): Date

Parameters

  • iso8601: string

Returns

Date