mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 17:45:03 +02:00
Date literals (#4619)
* Date literals * update deps * Add date+duration
This commit is contained in:
@ -57,7 +57,7 @@ fn value_to_string(v: &Value, span: Span) -> Result<String, ShellError> {
|
||||
}
|
||||
Value::CellPath { .. } => Err(ShellError::UnsupportedInput("cellpath".to_string(), span)),
|
||||
Value::CustomValue { .. } => Err(ShellError::UnsupportedInput("custom".to_string(), span)),
|
||||
Value::Date { .. } => Err(ShellError::UnsupportedInput("date".to_string(), span)),
|
||||
Value::Date { val, .. } => Ok(val.to_rfc3339()),
|
||||
Value::Duration { val, .. } => Ok(format!("{}ns", *val)),
|
||||
Value::Error { .. } => Err(ShellError::UnsupportedInput("error".to_string(), span)),
|
||||
Value::Filesize { val, .. } => Ok(format!("{}b", *val)),
|
||||
|
Reference in New Issue
Block a user