mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 01:15:14 +02:00
Renamed time units (#2356)
* Changed time units as outlined in issue #2353. Also applied changes to to_str for Unit - not sure if that was what was wanted. * Forgot the tests! * Updated primitive.rs to match changes. * Updated where example to match changes. * And the html test!
This commit is contained in:
@ -316,13 +316,13 @@ fn parse_unit(lite_arg: &Spanned<String>) -> (SpannedExpression, Option<ParseErr
|
||||
(Unit::Nanosecond, vec!["ns"]),
|
||||
(Unit::Microsecond, vec!["us"]),
|
||||
(Unit::Millisecond, vec!["ms"]),
|
||||
(Unit::Second, vec!["s"]),
|
||||
(Unit::Minute, vec!["m"]),
|
||||
(Unit::Hour, vec!["h"]),
|
||||
(Unit::Day, vec!["d"]),
|
||||
(Unit::Week, vec!["w"]),
|
||||
(Unit::Month, vec!["M"]),
|
||||
(Unit::Year, vec!["y"]),
|
||||
(Unit::Second, vec!["sec"]),
|
||||
(Unit::Minute, vec!["min"]),
|
||||
(Unit::Hour, vec!["hr"]),
|
||||
(Unit::Day, vec!["day"]),
|
||||
(Unit::Week, vec!["wk"]),
|
||||
(Unit::Month, vec!["mon"]),
|
||||
(Unit::Year, vec!["yr"]),
|
||||
];
|
||||
|
||||
for unit_group in unit_groups.iter() {
|
||||
|
Reference in New Issue
Block a user