Minutes in an Hour

Number of minutes in an hour.

Usage

var MINUTES_IN_HOUR = require( '@stdlib/constants/time/minutes-in-hour' );

MINUTES_IN_HOUR

Number of minutes in an hour.

var bool = ( MINUTES_IN_HOUR === 60 );
// returns true

Examples

var randu = require( '@stdlib/random/base/randu' );
var roundn = require( '@stdlib/math/base/special/roundn' );
var MINUTES_IN_HOUR = require( '@stdlib/constants/time/minutes-in-hour' );

var h;
var m;
var i;

function hrs2mins( hrs ) {
    return hrs * MINUTES_IN_HOUR;
}

for ( i = 0; i < 10; i++ ) {
    h = roundn( randu()*20.0, -2 );
    m = hrs2mins( h );
    console.log( '%d hours => %d minutes', h, m );
}