A JavaScript calculator for adding and subtracting time.


Keywords
calculator, time, addition, subtraction, add, subtract
License
ISC
Install
npm install time-calculator@1.0.8

Documentation

Time Calculator

A JavaScript calculator for adding and subtracting time.

screenshot of Time Calculator

Installation

via NPM

npm install time-calculator

Now, all the files you need are in the node_modules/time-calculator directory

manually

Download the .zip file of this repository. Extract the contents into a separate directory and open the index.html file in your browser.

Usage

  • Do all the maths!
  • The :, +, -, = and all the number keys are mapped to the calculator as expected.
  • The esc key is mapped to the Clr button.
  • The delete / backspace key is mapped to the Del button.
  • Pressing enter will trigger the = operation.
  • Pressing enter after simply entring a number will convert that number into the correct time segments (try entering 1000000 then pressing enter).