get-clock
v1.0.1
Published
current date and time
Readme
This is the package that facilitate you with mulitple date related properties that you can use it in your code with ease.
- How to use?
- const time = require('get-time');
- To have a running clock in your terminal call this function code snippet: time(true);
- To use it normally to get the properties like year,month,day,date,time see in below code snippet. const date = time() // give you the object date.year // get the year date.month // will give you the month date.time() // give you the current time date.day // give you the day name of the today date.date // give you the date value
