Skip to content

Commit 6e70de1

Browse files
authored
Fix datetime annotation (nushell#1549)
1 parent e517e24 commit 6e70de1

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.vuepress/configs/sidebar/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const sidebarEn: SidebarConfig = {
182182
'/lang-guide/chapters/types/basic_types/float.md',
183183
'/lang-guide/chapters/types/basic_types/filesize.md',
184184
'/lang-guide/chapters/types/basic_types/duration.md',
185-
'/lang-guide/chapters/types/basic_types/date.md',
185+
'/lang-guide/chapters/types/basic_types/datetime.md',
186186
'/lang-guide/chapters/types/basic_types/range.md',
187187
'/lang-guide/chapters/types/basic_types/string.md',
188188
'/lang-guide/chapters/types/basic_types/record.md',

book/types_of_data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ It's negative
133133

134134
| | |
135135
| --------------------- | -------------------------------------------------------------------------------------- |
136-
| **_Description:_** | Represents a specific point in time using international standard date time descriptors |
137-
| **_Annotation:_** | `date` |
138-
| **_Literal Syntax:_** | See [Language Guide - Date](/lang-guide/chapters/types/basic_types/date.md) |
136+
| **_Description:_** | Represents a specific point in time using international standard date-time descriptors |
137+
| **_Annotation:_** | `datetime` |
138+
| **_Literal Syntax:_** | See [Language Guide - Date](/lang-guide/chapters/types/basic_types/datetime.md) |
139139

140140
Simple example:
141141

Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Date
1+
# Datetime
22

33
<!-- prettier-ignore -->
44
| | |
55
| --- | --- |
66
| **_Description:_** | Represents a specific point in time using international standard date time descriptors
7-
| **_Annotation:_** | `date`
7+
| **_Annotation:_** | `datetime`
88
| **_Literal syntax:_** | RFC 3339
99
| | Date-only: `2022-02-02`
1010
| | Date and time (GMT): `2022-02-02T14:30:00`
@@ -14,14 +14,15 @@
1414

1515
## Additional language notes
1616

17-
- Dates and times are held together in the `date` type. Date values used by the system are timezone-aware. By default, dates use the UTC timezone.
17+
- Dates and times are held together in the `datetime` type. Date values used by the system are timezone-aware. By default, dates use the UTC timezone.
1818

19-
## Common commands that can be used with `date`
19+
## Common commands that can be used with `datetime`
2020

21-
Many of Nushell's builtin commands are datetime aware and output or use `date` values
21+
Many of Nushell's builtin commands are datetime aware and output or use `datetime` values
2222
for fields and expressions. For example:
2323

24+
- `date` and its subcommands
25+
- `format date`
2426
- `ls`
25-
- `where`
2627
- `ps`
2728
- `sys`

0 commit comments

Comments
 (0)