This is a simple calculator to add or subtract 2 time values. This one has minimal bloat and runs locally in JavaScript, so it is not hampered by slow network connections. I created this because I often need to know how much time is between entries in log files. The calculator will auto-update whenever the inputs are changed, or an update can be forced with the ‘=’ button.
Times can be entered as strings or through separate components.
String values can be an integer representing seconds, or one of the formats “HH:MM” (or “MM:SS” depending on the above toggle), “HH:MM:SS”, or “Dd HH:MM:SS”, with SS seconds, MM minutes, HH hours, and D days. These formats can be followed by an AM or PM designation, and all can be preceded by a minus sign to represent a negative value (past).
12:00:00 AM is considered to be midnight and 12:00:00 PM to be noon.
The calculator allows entering nonstandard time designations like 25:72:60.
◆ Other calculators: File sizes — Video bitrate ◆
This work is licensed under a Creative Commons Attribution 4.0 International License.