Month Names

A list of month names (English).

Usage

var months = require( '@stdlib/datasets/month-names-en' );

months()

Returns a list of month names (English).

var list = months();
/* returns
    [
        'January',
        'February',
        'March',
        'April',
        'May',
        'June',
        'July',
        'August',
        'September',
        'October',
        'November',
        'December'
    ]
*/

Examples

var floor = require( '@stdlib/math/base/special/floor' );
var randu = require( '@stdlib/random/base/randu' );
var months = require( '@stdlib/datasets/month-names-en' );

var list;
var len;
var idx;
var i;

list = months();
len = list.length;

// Select random months from the list...
for ( i = 0; i < 100; i++ ) {
    idx = floor( randu()*len );
    console.log( list[ idx ] );
}

CLI

Usage

Usage: month-names-en [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.

Examples

$ month-names-en
January
February
March
...

License

The data files (databases) are licensed under an Open Data Commons Public Domain Dedication & License 1.0 and their contents are licensed under Creative Commons Zero v1.0 Universal. The software is licensed under Apache License, Version 2.0.