jj-dateformat

0.0.1 • Public • Published

install

npm install jj-dateformat

run test

npm run test

usage

var JJDateformat = require('jj-dateformat');

var now = new Date();
var dateformat = new JJDateformat("yyyy/MM/dd HH:hh:mm a");
var d = dateformat.format(now);
console.log("JJ:", d); //  2019/12/19 13:01:28 PM

var dateformat_ = new JJDateformat("yyyy/MM/dd HH:hh:mm A");
var D_ = dateformat_.format(now);
console.log("JJ:", D_); //  2019/12/19 13:01:28 pm


var D_s = dateformat_.format("1576732710444");
console.log("JJ:", D_s); //  2019/12/19 13:01:18 pm


var D_n = dateformat_.format(1576732710444);
console.log("JJ:", D_n); //  2019/12/19 13:01:18 pm

Readme

Keywords

Package Sidebar

Install

npm i jj-dateformat

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

4.12 kB

Total Files

5

Last publish

Collaborators

  • jason_jj