File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ Get the current date and display it in a given format string.
35
35
36
36
```
37
37
38
+ Get current time in full RFC 3339 format with time zone.
39
+ ``` nu
40
+ > date now | format date %+
41
+
42
+ ```
43
+
38
44
Get the time duration since 2019-04-30.
39
45
``` nu
40
46
> (date now) - 2019-05-01
@@ -47,8 +53,8 @@ Get the time duration since a more specific time.
47
53
48
54
```
49
55
50
- Get current time in full RFC 3339 format with time zone.
56
+ Get current time in RFC 2289 format with time zone.
51
57
``` nu
52
- > date now | debug
58
+ > date now | format date
53
59
54
60
```
Original file line number Diff line number Diff line change @@ -68,3 +68,14 @@ Format a given date using a given format string.
68
68
> "2021-10-22 20:00:12 +01:00" | format date "%Y-%m-%d"
69
69
2021-10-22
70
70
```
71
+
72
+ Format a given date-time using RFC3339 format.
73
+ ``` nu
74
+ > "2021-10-22 20:00:12 +01:00" | format date %+
75
+ 2021-10-22T20:00:12+01:00
76
+ ```
77
+
78
+ Format current date-time using RFC3339 format.
79
+ ``` nu
80
+ > date now | format date %+
81
+ ```
You can’t perform that action at this time.
0 commit comments