date to-table
for date> date to-table {flags}
input | output |
---|---|
datetime | table |
string | table |
Convert the current date into a table.
>date to-table
Convert the date into a table.
>date now|date to-table
Convert a given date into a table.
>2020-04-12T22:10:57.000000789+02:00|date to-table
╭───┬──────┬───────┬─────┬──────┬────────┬────────┬────────────┬──────────╮
│# │ year │ month │ day │ hour │ minute │ second │ nanosecond │ timezone │
├───┼──────┼───────┼─────┼──────┼────────┼────────┼────────────┼──────────┤
│0│2020│4│12│22│10│57│789│+02:00│
╰───┴──────┴───────┴─────┴──────┴────────┴────────┴────────────┴──────────╯
Convert a given date into a table.
>'2020-04-12 22:10:57 +0200'|into datetime|date to-table
╭───┬──────┬───────┬─────┬──────┬────────┬────────┬────────────┬──────────╮
│# │ year │ month │ day │ hour │ minute │ second │ nanosecond │ timezone │
├───┼──────┼───────┼─────┼──────┼────────┼────────┼────────────┼──────────┤
│0│2020│4│12│22│10│57│0│+02:00│
╰───┴──────┴───────┴─────┴──────┴────────┴────────┴────────────┴──────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/date_to-table.html