into record
for conversions> into record {flags}
input | output |
---|---|
datetime | record |
duration | record |
list<any> | record |
range | record |
record | record |
table | record |
Convert from one row table to record
> [[value]; [false]] |into record
╭───────┬───────╮
│value│false│
╰───────┴───────╯
Convert from list to record
> [123] |into record
╭───┬───╮
│0│1│
│1│2│
│2│3│
╰───┴───╯
Convert from range to record
>0..2|into record
╭───┬───╮
│0│0│
│1│1│
│2│2│
╰───┴───╯
convert duration to record (weeks max)
> (-500day-4hr-5sec) |into record
╭────────┬────╮
│week│71│
│day│3│
│hour│4│
│second│5│
│sign│-│
╰────────┴────╯
convert record to record
> {a:1, b:2} |into record
╭───┬───╮
│a│1│
│b│2│
╰───┴───╯
convert date to record
>2020-04-12T22:10:57+02:00|into record
╭──────────┬────────╮
│year│2020│
│month│4│
│day│12│
│hour│22│
│minute│10│
│second│57│
│timezone│+02:00│
╰──────────┴────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/into_record.html