<commit_before># Months in a Year

> Number of months in a year.

<section class="usage">

## Usage

``` javascript
var MONTHS_IN_YEAR = require( '@stdlib/time/constants/months-in-year' );
```

#### MONTHS_IN_YEAR

Number of months in a year.

``` javascript
MONTHS_IN_YEAR === 12;
```

</section>

<!-- /.usage -->


<section class="examples">

## Examples

``` javascript
var randu = require( '@stdlib/math/base/random/randu' );
var roundn = require( '@stdlib/math/base/special/roundn' );
var MONTHS_IN_YEAR = require( '@stdlib/time/constants/months-in-year' );

var mons;
var yrs;
var i;

function yrs2mons( yrs ) {
    return yrs * MONTHS_IN_YEAR;
}

for ( i = 0; i < 10; i++ ) {
    yrs = roundn( randu()*20.0, -2 );
    mons = yrs2mons( yrs );
    console.log( '%d years => %d months', yrs, mons );
}
```

</section>

<!-- /.examples -->


<section class="links">

</section>

<!-- /.links -->
<commit_msg>Resolve lint error<commit_after># Months in a Year

> Number of months in a year.

<section class="usage">

## Usage

``` javascript
var MONTHS_IN_YEAR = require( '@stdlib/time/constants/months-in-year' );
```

#### MONTHS_IN_YEAR

Number of months in a year.

``` javascript
var bool = ( MONTHS_IN_YEAR === 12 );
// returns true
```

</section>

<!-- /.usage -->


<section class="examples">

## Examples

``` javascript
var randu = require( '@stdlib/math/base/random/randu' );
var roundn = require( '@stdlib/math/base/special/roundn' );
var MONTHS_IN_YEAR = require( '@stdlib/time/constants/months-in-year' );

var mons;
var yrs;
var i;

function yrs2mons( yrs ) {
    return yrs * MONTHS_IN_YEAR;
}

for ( i = 0; i < 10; i++ ) {
    yrs = roundn( randu()*20.0, -2 );
    mons = yrs2mons( yrs );
    console.log( '%d years => %d months', yrs, mons );
}
```

</section>

<!-- /.examples -->


<section class="links">

</section>

<!-- /.links -->

{'fraction_non_alphanumeric': 0.19516129032258064, 'fraction_numerical': 0.011827956989247311, 'mean_word_length': 3.337995337995338, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4332494', 'n_tokens_mistral': 772, 'n_tokens_neox': 714, 'n_words': 176}