API Docs for:
Show:

components.TimeAgo Class

Defined in: bundle.js:3115
Module: filesize

Render human readable time from the given date object

Constructor

components.TimeAgo

(
  • props
)

Defined in bundle.js:3115

Parameters:

  • props Object
    • date Date

Methods

getDate

() Date

Return the date. If the date is in future just return the current time. Clock skews can put the date few seconds in the future which does not make any sense on timstamps. Future dates are considered as "now".

Returns:

Date:

getDate

() Date

Return the date. If the date is in future just return the current time. Clock skews can put the date few seconds in the future which does not make any sense on timstamps. Future dates are considered as "now".

Returns:

Date:

getDate

() Date

Defined in bundle.js:3149

Return the date. If the date is in future just return the current time. Clock skews can put the date few seconds in the future which does not make any sense on timstamps. Future dates are considered as "now".

Returns:

Date:

isInFuture

() Boolean

Return true if the date given to this component is in future

Returns:

Boolean:

isInFuture

() Boolean

Return true if the date given to this component is in future

Returns:

Boolean:

isInFuture

() Boolean

Defined in bundle.js:3139

Return true if the date given to this component is in future

Returns:

Boolean: