1.0.2 • Published 4 years ago
time-to-text v1.0.2
time-to-text
时间戳转化时间
Installation
$ npm install -save time-to-text
或者
<script src="index.js"></script>
Basic usage
import { timeToText } from 'time-to-text'
// 时间戳到秒
timeToText(1585540800) // 1分钟 / 1小时 / 1天 ......