datemaker

1.0.0 • Public • Published

datemaker

Get the current time and date in local time or UTC, in the format: hours:minutes:seconds:milliseconds - dd/mm/yyyy

Install

npm install datemaker

Use

Import from node modules

const datemaker = require('datemaker');

Return local time and date as a string

datemaker.local()

Return UTC time and date as a string

datemaker.UTC()

Eg. if the current local time and date is 3.01pm, 24seconds, 356milliseconds on 28th Nov 2020:

console.log(datemaker.local());
// prints "15:01:24:356 - 28/11/2020"

Readme

Keywords

Package Sidebar

Install

npm i datemaker

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.93 kB

Total Files

3

Last publish

Collaborators

  • jbower493