nodejs/time/validators.js
/**
	 * @description Rounds a timestamp to its closest minute
	 * @param {*} t Time to be rounded to the closest minute
	 */
@description Rounds a timestamp to its closest minute
@param {*} t Time to be rounded to the closest minute
@description Rounds a timestamp to its closest minute @param { * } t Time to be rounded to the closest minute
roundTime(t){
		const d = new Date(parseInt(t));
		const minutes = Validators.roundTo(d.getMinutes(), Validators.unit);
		d.setSeconds(0);
		d.setMilliseconds(0);
		d.setMinutes( minutes );
		return d.getTime();
	}
roundTime ( t ) { const d = new Date ( parseInt ( t ) ) ; const minutes = Validators . roundTo ( d . getMinutes ( ) , Validators . unit ) ; d . setSeconds ( 0 ) ; d . setMilliseconds ( 0 ) ; d . setMinutes ( minutes ) ; return d . getTime ( ) ; }
@description Rounds a timestamp to its closest minute
 @param {*} t Time to be rounded to the closest minute
@description Rounds a timestamp to its closest minute @param { * } t Time to be rounded to the closest minute