pinafore/routes/_intl/formatTimeagoDate.js
2018-11-25 10:33:59 -08:00

10 lines
241 B
JavaScript

import { format } from '../_thirdparty/timeago/timeago'
import { mark, stop } from '../_utils/marks'
export function formatTimeagoDate (date) {
mark('formatTimeagoDate')
let res = format(date)
stop('formatTimeagoDate')
return res
}