mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 17:38:14 +02:00
add example usage in command
This commit is contained in:
parent
ed7a00a0e4
commit
fe38ac3157
@ -229,6 +229,12 @@ impl Command for IntoDatetime {
|
||||
#[allow(clippy::inconsistent_digit_grouping)]
|
||||
result: example_result_1(1614434140_000000000),
|
||||
},
|
||||
Example {
|
||||
description: "Using a record as input",
|
||||
example: "{year: 2025, month: 3, day: 30, hour: 12, minute: 15, second: 59, timezone: '+02:00'} | into datetime",
|
||||
#[allow(clippy::inconsistent_digit_grouping)]
|
||||
result: example_result_1(1743329759_000000000),
|
||||
},
|
||||
Example {
|
||||
description: "Convert list of timestamps to datetimes",
|
||||
example: r#"["2023-03-30 10:10:07 -05:00", "2023-05-05 13:43:49 -05:00", "2023-06-05 01:37:42 -05:00"] | into datetime"#,
|
||||
|
Loading…
x
Reference in New Issue
Block a user