1.0.10 • Published 6 years ago
timetran v1.0.10
Usage
const time =require("timetran")
console.log(time.timeTran("1514739661000")); /*=> 2018-1-1 01:01:01 */
console.log(time.timeTran("2018-1-1 01:01:01")); //=> 1514739661000
API
timeTran(str) The method accepts a parameter, a timestamp or a commonly used event format (2018-1-1 1:1:1, 2018/1/1 1:1:1), which is automatically converted to the corresponding event stamp or standard. Event format。