CLI tool to diff dates with millisecond precision and support for multiple output formats (e.g. json, yaml).
- Install Deno
- Run
deno task install
- Run
datelta -b "Jan 1, 1990" | jq
Time between start date and end date.
datelta -b "jan 10, 1990 12:30:01" -e "feb 2002" | jq
{
"years": 12,
"months": 0,
"days": 24,
"hours": 11,
"minutes": 29,
"seconds": 59,
"milliseconds": 0
}
Time since start date.
datelta -b "mar 2006" | jq
{
"years": 17,
"months": 7,
"days": 28,
"hours": 19,
"minutes": 42,
"seconds": 36,
"milliseconds": 428
}
Task | Description |
---|---|
deno task install | Install datelta as an executable |
deno task uninstall | Uninstall datelta |
deno task dev | Start development mode |