nushell/crates/nu-std/std
Douglas 7c160725ed
Rename user-facing 'date' to 'datetime' (#15264)
We only have one valid `datetime` type, but the string representation of
that type was `date`. This PR updates the string representation of the
`datetime` type to be `datetime` and updates other affected
dependencies:

* A `describe` example that used `date`
* The style computer automatically recognized the new change, but also
changed the default `date: purple` to `datetime: purple`.
* Likewise, changed the `default_config.nu` to populate
`$env.config.color_config.datetime`
* Likewise, the dark and light themes in `std/config`
* Updates tests
* Unrelated, but changed the `into value` error messages to use
*"datetime"* if there's an issue.

Fixes #9916 and perhaps others.

## Breaking Changes:

* Code that expected `describe` to return a `date` will now return a
`datetime`
* User configs and themes that override `$env.config.color_config.date`
will need to be updated to use `datetime`
2025-03-21 13:36:21 -04:00
..
assert Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
bench allow bench to handle larger numbers (#15162) 2025-02-25 15:02:42 +01:00
config Rename user-facing 'date' to 'datetime' (#15264) 2025-03-21 13:36:21 -04:00
dirs feat(std/dirs): retain state in subshells or with exec-restarts (#15080) 2025-02-11 19:51:43 -05:00
dt Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
formats Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
help refactor: tree-sitter-nu friendly alternative expressions (#15301) 2025-03-12 08:48:19 -05:00
input Fix usages of fmt to format number (#15041) 2025-02-07 23:50:33 +01:00
iter Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
log Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
math Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
prelude Add category to pwd and banner commands (#15330) 2025-03-17 20:22:01 +08:00
testing Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
util Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
xml Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00
mod.nu Replace "function" with "command" in several user-facing doc (#15129) 2025-02-17 14:10:38 -05:00