1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-23 04:38:21 +02:00

Make date values more readable ()

This commit is contained in:
JT 2022-03-09 05:43:04 -05:00 committed by GitHub
parent 99f7636b03
commit 088d19ad47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,7 +428,7 @@ impl Value {
Value::Float { val, .. } => val.to_string(),
Value::Filesize { val, .. } => format_filesize(*val, config),
Value::Duration { val, .. } => format_duration(*val),
Value::Date { val, .. } => HumanTime::from(*val).to_string(),
Value::Date { val, .. } => format!("{} ({})", val.to_rfc2822(), HumanTime::from(*val)),
Value::Range { val, .. } => {
format!(
"{}..{}",