Add into duration (#4683)

* Add `into duration` command

* Avoid using unwrap()

* Use existing logic to parse duration strings
This commit is contained in:
Yutaro Ohno
2022-03-03 22:16:04 +09:00
committed by GitHub
parent 2fd42d25b1
commit 210d25f2a0
5 changed files with 328 additions and 39 deletions

View File

@ -279,6 +279,7 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
IntoBinary,
IntoDatetime,
IntoDecimal,
IntoDuration,
IntoFilesize,
IntoInt,
IntoString,