framework/js/dist-typings/common/utils/humanTime.d.ts

7 lines
194 B
TypeScript
Raw Normal View History

import 'dayjs/plugin/relativeTime';
/**
* The `humanTime` utility converts a date to a localized, human-readable time-
* ago string.
*/
export default function humanTime(time: Date): string;