components.TimeAgo Class
Render human readable time from the given date object
Constructor
components.TimeAgo
-
props
Parameters:
-
propsObject-
dateDate
-
Item Index
Methods
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:
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:
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:
isInFuture
()
Boolean
Return true if the date given to this component is in future
Returns:
isInFuture
()
Boolean
Return true if the date given to this component is in future
Returns:
isInFuture
()
Boolean
Return true if the date given to this component is in future
