Files
SupportBot/node_modules/chance/docs/time/month.md
T
2021-02-02 13:50:53 +00:00

342 B

month

// usage
chance.month()

Generate a random month.

chance.month();
=> 'January'

By default, returns just the full name.

Optionally specify raw to get the whole month object consisting of name, short_name, and numeric.

chance.month({raw: true});
=> {name: 'October', short_name: 'Oct', numeric: '10'}