aboutsummaryrefslogtreecommitdiffstats
path: root/.gitmodules
diff options
context:
space:
mode:
authorTeddy Wing2018-10-21 19:51:48 +0200
committerTeddy Wing2018-10-21 19:51:48 +0200
commitff244b2e9b7705534ea37ff727be205274ea9ae3 (patch)
treea340238898ee00150c8100ecb9640f957ecfd7fb /.gitmodules
parent6b0f1121662e5e9ca968c554bb7a19f6fd5566c9 (diff)
downloaddome-key-map-ff244b2e9b7705534ea37ff727be205274ea9ae3.tar.bz2
Add `trial` module, calculate days remaining
This new module will contain functions to calculate trial days. Here we implement a function to calculate the days remaining in a trial period. If there are less than 0 days remaining, it returns an error result. Couldn't use 'error-chain' because it was complaining about `Debug` and `PartialEq` not being defined. Don't know if it's possible to implement those traits on 'error-chain''s ErrorKind`, but it was complicated enough that I ended up not bothering. Went with 'quick_error' instead to create a custom error type without having to `impl` all the required traits.
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions