0.1.3 • Published 3 years ago

now-yyyymmdd-hhmmss v0.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

now-yyyymmdd-hhmmss

Return current date as string in format yyyyMMdd-HHmmss.

API

This module exports one function which holds another function:

nowFmt()

Return current date as string in format yyyyMMdd-HHmmss.

nowFmt.custom(opt)

Where opt is a mandatory options object which holds these mandatory keys:

  • sep: String that should be put between date and time, instead of the hyphen-minus.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago