2018-11-25 19:33:59 +01:00
|
|
|
import { format } from '../_thirdparty/timeago/timeago'
|
2018-11-25 10:20:58 +01:00
|
|
|
import { mark, stop } from '../_utils/marks'
|
|
|
|
|
|
|
|
export function formatTimeagoDate (date) {
|
|
|
|
mark('formatTimeagoDate')
|
2018-11-25 19:33:59 +01:00
|
|
|
let res = format(date)
|
2018-11-25 10:20:58 +01:00
|
|
|
stop('formatTimeagoDate')
|
|
|
|
return res
|
|
|
|
}
|