clf-date

0.2.1 • Public • Published

clf-date

Node.js CI Coverage Status Code Climate npm version

Return the current date in CLF format: %d/%b/%Y:%H:%M:%S %z.

Executable

npm install -g clf-date # or yarn global add clf-date

# Without parameter
clf-date

# With parameter (everything which works with Date.parse)
clf-date 2042

Node.js library

npm install clf-date # or yarn add clf-date
const clfDate = require('clf-date');

// Without parameter it will use the current time.
console.log(clfDate());

// With a Date in parameter.
const date = new Date();
date.setFullYear(2042);
console.log(clfDate(date);

Contributing

Don't hesitate to create a pull request to improve the project.

Bugs

If you find a bug or want a new feature, dont'hesitate to create an issue.

License

MIT

Package Sidebar

Install

npm i clf-date

Weekly Downloads

4,154

Version

0.2.1

License

MIT

Unpacked Size

4.84 kB

Total Files

8

Last publish

Collaborators

  • lludol