跳到主要内容

formatPassTime()

function formatPassTime(
startDate,
endDate,
config?): string;

Defined in: date/formatPassTime.ts:10

格式化流逝时间(如"3小时前")

Parameters

ParameterType
startDateDate
endDateDate
config?ParseTimeConfig | FormatPassFunction

Returns

string