package tcalc

  1. Overview
  2. Docs
Minimal desktop calculator for timestamps

Install

Dune Dependency

Authors

Maintainers

Sources

tcalc-1.0.1.tbz
sha256=ca4ad22224da943592779fbba8d29792a5ef0b9474bdfd5cbf36cb1e0de092ef
sha512=a8d9f197eb2fa85ac9b1c5c46fb6c8719f4c85108a0be1071f4f7b1a4b73f0b890937e1f7516efa7058e30f360cecfb6d348448048eb23d14b8f425217009538

Description

TCalc implements a minimal desktop calculator that in addition to floating point numbers recognises durations in hh:min:sec format and converts them to seconds. This can simplify time-based calculations.

Published: 26 Dec 2021

README

README.md

TCalc

This is a minimal desktop calculator (taken from the Lex/Yacc section of the OCaml manual) that can parses 3:04.5 as a time and covert it into 184.5 seconds. I'm using it for simple time calculations.

$ tcalc
3:04.5
184.50 (00:03:04.50)
11:52.2 / 2670 * 500
133.37 (00:02:13.37)
$ 

Installation

This is an OCaml project, it assumes you have available on a Unix system:

  • OCaml

  • Dune

  • Make

make 
make install

Contribute

If you find this useful, please contribute back by raising pull requests for improvements you made.

Dependencies (3)

  1. linenoise >= "1.3.1"
  2. ocaml >= "4.08.0"
  3. dune >= "2.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.