time-format-tools

1.0.9 • Public • Published

安装:npm install time-format-tools -D

引入:import timeFormat from 'time-format-tools';

使用:timeFormat(timeString[,timestamp])

调用:timeFormat('YY-MM-DD hh:mm:ss') // 20-08-26 10:58:22

  timeFormat('YYYY-MM-DD hh:mm:ss') // 2020-08-26 10:58:22

  timeFormat('MM-DD hh:mm:ss') // 08-26 10:58:22

  timeFormat('YY-MDD h:m:s') // 20-8-26 9:8:22

  timeFormat('YYYY-MM-DD hh:mm:ss',1598421401198) // 2020-8-26 13:57:12

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i time-format-tools

      Weekly Downloads

      1

      Version

      1.0.9

      License

      ISC

      Unpacked Size

      2.41 kB

      Total Files

      3

      Last publish

      Collaborators

      • thyee_