Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/utils / lib / getHoursAndMinutes.js
Size: Mime:
/**
 * Function to extract time from time stamp and convert into string as hh:mm e.g. 15:55
 * @param {Number} timeStamp - sets the new date by adding the provided number of days for the current date
 * @returns {String} - time in format HH:mm
 */

export default (function (timeStamp) {
  return new Date(timeStamp).toLocaleTimeString().replace(/(.*)\D\d+/, '$1');
});