Nodejs Time Parse parseTime( unit, settings )

Here you can find the source of parseTime( unit, settings )

Method Source Code

String.prototype.parseTime = function( unit, settings ) {
  return ( new Timestring( settings ) ).parse( this, unit );
};

Related

  1. parseTime()
    String.prototype.parseTime = function(){
      return (parseInt(this.substring(0, 2)) * 60) + (parseInt(this.substring(3)));
    };