Nodejs Utililty Methods Time Parse

List of utility methods to do Time Parse

Description

The list of methods to do Time Parse are organized into topic(s).

Method

parseTime( unit, settings )
String.prototype.parseTime = function( unit, settings ) {
  return ( new Timestring( settings ) ).parse( this, unit );
};
parseTime()
String.prototype.parseTime = function(){
  return (parseInt(this.substring(0, 2)) * 60) + (parseInt(this.substring(3)));
};