Skip to content
This repository has been archived by the owner on May 21, 2020. It is now read-only.
/ clf-date Public archive
forked from lludol/clf-date

Return the current date in CLF format

License

MIT, MIT licenses found

Licenses found

MIT
LICENCE
MIT
LICENSE.org
Notifications You must be signed in to change notification settings

weseek/clf-date

 
 

Repository files navigation

Because a bug (lludol/clf-date#7) in 'lludol/clf-date' has been fixed, this package will be removed soon.

@weseek/clf-date

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

The purpose of this package is to fix the bug (lludol/clf-date#7).

Executable

npm install -g @weseek/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 @weseek/clf-date # or yarn add clf-date
const clfDate = require('@weseek/clf-date');

// Without parameter it will use the current time.
console.log(clfDate());     # Ex) Output log "12/May/2018:19:29:27 +0900"

// With a Date in parameter.
const date = new Date();
date.setFullYear(2042);
console.log(clfDate(date)); # Ex) Output log "12/May/2042:19:29:27 +0900"

License

MIT

About

Return the current date in CLF format

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENCE
MIT
LICENSE.org

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%