libreccm-legacy/trunk-images/node_modules/time-stamp
baka a212bb7b37 [3056] Adds Plugin to add Images from the system in tinymce. Now with files...
git-svn-id: https://svn.libreccm.org/ccm/trunk@5722 8810af33-2d31-482b-a856-94f89814c4df
2018-11-03 23:44:15 +00:00
..
LICENSE [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
README.md [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
index.d.ts [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
index.js [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
package.json [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00

README.md

time-stamp NPM version NPM monthly downloads NPM total downloads Linux Build Status

Get a formatted timestamp.

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

Install

Install with npm:

$ npm install --save time-stamp

v2.0.0

Breaking changes

Default pattern was changed from YYYY:MM:DD to YYYY-MM-DD. See https://github.com/jonschlinkert/time-stamp/issues/3 for more details.

Usage

var timestamp = require('time-stamp');

timestamp();
//=> 2018-08-22
timestamp.utc();
//=> 2018-08-22

timestamp('YYYYMMDD');
//=> 20180822
timestamp.utc('YYYYMMDD');
//=> 20180822

timestamp('YYYYMMDD:ss');
//=> 20180822:39
timestamp.utc('YYYYMMDD:ss');
//=> 20180822:39

timestamp('YYYY/MM/DD:mm:ss');
//=> 2018/08/22:16:39
timestamp.utc('YYYY/MM/DD:mm:ss');
//=> 2018/08/22:16:39

timestamp('YYYY:MM:DD');
//=> 2018:08:22
timestamp.utc('YYYY:MM:DD');
//=> 2018:08:22

timestamp('[YYYY:MM:DD]');
//=> [2018:08:22]
timestamp.utc('[YYYY:MM:DD]');
//=> [2018:08:22]

timestamp('YYYY/MM/DD');
//=> 2018/08/22
timestamp.utc('YYYY/MM/DD');
//=> 2018/08/22

timestamp('YYYY:MM');
//=> 2018:08
timestamp.utc('YYYY:MM');
//=> 2018:08

timestamp('YYYY');
//=> 2018
timestamp.utc('YYYY');
//=> 2018

timestamp('MM');
//=> 08
timestamp.utc('MM');
//=> 08

timestamp('DD');
//=> 22
timestamp.utc('DD');
//=> 22

timestamp('HH');
//=> 11
timestamp.utc('HH');
//=> 15

timestamp('mm');
//=> 16
timestamp.utc('mm');
//=> 16

timestamp('ss');
//=> 39
timestamp.utc('ss');
//=> 39

timestamp('ms');
//=> 142
timestamp.utc('ms');
//=> 142

Valid patterns

  • YYYY: full year (ex: 2018)
  • MM: month (ex: 04)
  • DD: day (ex: 01)
  • HH: hours (ex: 12)
  • mm: minutes (ex: 59)
  • ss: seconds (ex: 09)
  • ms: milliseconds (ex: 532)

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

You might also be interested in these projects:

Contributors

Commits Contributor
31 jonschlinkert
4 doowb
1 evocateur
1 mendenhallmagic
1 mvanroon
1 leesei
1 sleagon

Author

Jon Schlinkert

License

Copyright © 2018, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.8.0, on August 22, 2018.