📜  javascript get time ago with moment - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:03.255000             🧑  作者: Mango

代码示例1
const dateTimeAgo = moment("2020-04-04 11:45:26.123").fromNow();
console.log(dateTimeAgo); //> 6 minutes ago