Yesterday I had a tiny epiphany about when Emacs calc-mode can be really useful. Here’s a tiny screencast about it.
Calc-mode for calculating seconds
1 comment
Comments are closed.
Avdi Grimm, Code Cleric
Yesterday I had a tiny epiphany about when Emacs calc-mode can be really useful. Here’s a tiny screencast about it.
Comments are closed.
A math nerd would do it as: 2 60 * 18 + 60 * 17 +.
Basically:
2 60 * 18
calculates minutes of 2:18. Removes one multiplication from the stack. (The original was: 2 60 60 * * 18 60 * 17 + +)