1344ae3a65
add the ability to convert durations ( #6723 )
...
* add the ability to convert durations
* add conversion to floats if necessary
2022-10-14 11:46:48 -05:00
d66a5398d1
Remove month and year duration constants ( #6613 )
...
remove month/year/decade durations for parsing and units, but leave the humanized output for viewing
2022-09-26 09:55:13 +13:00
5ebfa10495
convert string duration to named duration ( #6406 )
2022-08-24 14:45:51 -05:00
d856ac92f4
expand durations to include month, year, decade ( #6123 )
...
* expand durations to include month, year, decade
* remove commented out fn
* oops, found more debug comments
* tweaked tests for the new way, borrowed heavily from chrono-humanize-rs
* clippy
* grammar
2022-07-26 08:05:37 -05:00
47f6d20131
adds better error for failed string-to-duration conversions ( #5977 )
...
* adds better error for failed string-to-duration conversions
* makes error multi-spanned, conveys literally all the information available now
2022-07-07 05:54:38 -05:00
e97ba9b74c
feat: add search terms for conversions ( #5259 )
2022-04-20 11:48:32 -05:00
1314a87cb0
update miette and switch to GenericErrors ( #5222 )
2022-04-19 00:34:10 +12:00
ea7c8c237e
CantConvert improvements ( #4926 )
...
* CantConvert improvements
* cargo fmt
2022-03-24 07:04:31 -05:00
7d0531d270
Add support for escape characters, make nuon a JSON superset ( #4706 )
...
* WIP
* Finish adding escape support in strings
* Try to fix windows
2022-03-03 13:14:03 -05:00
210d25f2a0
Add into duration
( #4683 )
...
* Add `into duration` command
* Avoid using unwrap()
* Use existing logic to parse duration strings
2022-03-03 08:16:04 -05:00