mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 14:48:44 +02:00
Date literals (#4619)
* Date literals * update deps * Add date+duration
This commit is contained in:
@ -212,6 +212,7 @@ fn convert_to_value(
|
||||
"subexpressions and cellpaths not supported in nuon".into(),
|
||||
expr.span,
|
||||
)),
|
||||
Expr::DateTime(dt) => Ok(Value::Date { val: dt, span }),
|
||||
Expr::ExternalCall(..) => Err(ShellError::OutsideSpannedLabeledError(
|
||||
original_text.to_string(),
|
||||
"Error when loading".into(),
|
||||
|
Reference in New Issue
Block a user