nortakales / vs-code-qalc

Interactive scratchpad calculator for VS Code
MIT License
68 stars 2 forks source link

Shorthand for time values #28

Open VulumeCode opened 1 year ago

VulumeCode commented 1 year ago

Using time in calculations is hard.

In stead of (19 h + 53 mins) - (16 h + 57 mins) or date(1/Jan/0 19:53) - date(1/Jan/0 16:57) I would like to be able to write something more intuitive like 19h53 - 16h57 or time(19:53) - time(16:57).

The former could be extended to something like 1y2M3d4h5m6s. Even though months and years can vary in length, Math.js has fixed values for them in timespan conversions.

It would also be useful to allow this notation in results.

VulumeCode commented 1 year ago

More inspiration in the desktop qalc docs https://qalculate.github.io/manual/qalc.html