Date Time Expression – a language for expressing and calculating date and time

https://asciinema.org/a/hAgiIUnxUezXMFUJD7JzpCJqR

#Date #Time #Expression #language #expressing #calculating #date #time

What do you think?

3 points
Upvote Downvote

Comments

Leave a Reply
  1. Date Time Expression – a language for expressing and calculating date and time

    [dte](https://github.com/mvrozanti/dte) is a little interpreter I’ve been having so much fun making and I think it’s close to done. It’s a date-time calculating language with a focus on (firstly) broad interpretation and (secondly) minimalism. In natural language, there are many ways to describe date and time and its operations, and dte is an attempt to reflect that. It’s made with the help of the [ply](https://www.dabeaz.com/ply/), a pure-python implementation of lex and yacc. It was inspired by [pdd](https://github.com/jarun/pdd), which is another command-line utility for quick date-time calculations.

    I couldn’t fit all the examples on the gif, so you might want to check out the tests too for more of them, but I think it’s more amusing to just try things out.

    It’s on pypi too and adds itself to PATH after install: `pip install dte`

    This is still a work in progress so any and all feedback is very appreciated!

Leave a Reply

Loading…

0