Get the name and number of the current weekday. Or get the name of the weekday for a given number.
Install with npm:
$ npm install --save weekdayvar weekday = require('weekday');
weekday();
//=> 'Sunday' (current day)
weekday('Sunday');
//=> '1'
weekday(1);
//=> 'Sunday'
weekday(4);
//=> 'Wednesday'- time-diff: Returns the formatted, high-resolution time difference between
startandendtimes. | homepage - time-stamp: Get a formatted timestamp. | homepage
- week: Get the current week number. | homepage
- year: Simple utility to get the current year with 2 or 4 digits. | homepage
| Commits | Contributor |
|---|---|
| 12 | jonschlinkert |
| 1 | brentvatne |
| 1 | davidohlin |
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verbInstall dev dependencies:
$ npm install -d && npm testJon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.31, on September 19, 2016.