You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/filters/date.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -26,16 +26,16 @@ Time must be supplied if date is not given, vice versa.
26
26
If the 24-hour clock is used, it is an error to specify "PM" for times later than 12 noon.
27
27
For example, "23:15 PM" is an error.
28
28
29
-
**Time Zone Format.** First character is a sign "+" (east of UTC) or "-" (west of UTC).
30
-
Hours and minutes offset are separated by colons.
31
-
Another format is `[sign][number]`. If `[number]` is less than 24, it is the offset in hours e.g. "-10" = -10 hours.
32
-
Otherwise it is the offset in houndred hours e.g. "+75" = "+115" = +1.25 hours.
29
+
**Time Zone Format.** First character is a sign "+" (to the east) or "-" (to the west).
30
+
Hours and minutes in the UTC offset can be separated by a colon.
31
+
Another format is `[sign][number]`. If `[number]` is less than 24, it is the offset in hours e.g. "-10" = -10 hours.
33
32
34
33
**Supported Format.**
35
34
36
-
*`YYYY-MM-DD`, `MM/DD/YYYY`, `MMMM DD YYYY`, `DD MMMM YYYY` — where YYYY is the year, MM is the month of the year, MMMM is the month full name or abbr, and DD is the day of the month ("2000-12-31", "20001231").
35
+
*`YYYY-MM-DD`, `MM/DD/YYYY`, `MMMM DD YYYY`, `DD MMMM YYYY` — where YYYY is the year, MM is the month of the year,
36
+
MMMM is the month full name or abbr, and DD is the day of the month.
37
37
*`DATE HH:MM:SS` — Where DATE is the date format discuss above, HH is the hour,
38
-
MM is the miute, SS is the seconds ("1995-02-04 24:00:51", "1976-W01-1 12:12:12.123").
38
+
MM is the miute, SS is the seconds.
39
39
*`DATE TIME +HH:MM`, `DATE TIME -HHMM`, `DATE TIME UTC`
40
40
41
41
[Add your date formats](./../api.md#date-parser).
@@ -90,8 +90,9 @@ The `format` string follows the same rules as the `strftime` standard C function
90
90
|`%n`| A newline character (`\n`) ||
91
91
|`%t`| A Tab character (`\t`) ||
92
92
93
+
93
94
**Aliases**:
94
-
95
+
95
96
| Spec | Description | Format | Example |
96
97
|------|-------------|--------|---------|
97
98
|`$c`| Preferred date |`%a %b %d %H:%m%s %Y`|`Tue Jun 23 15:45:01 2020`|
@@ -101,5 +102,6 @@ The `format` string follows the same rules as the `strftime` standard C function
101
102
|`$D`| month/day/year from 01/01/00 |`%m/%d/%y`|`12/02/79`|
102
103
|`$F`| year-month-day |`%Y-%m-%d`|`1979-12-02`|
103
104
104
-
[Add more aliases](./dev/date.md#aliases)
105
+
106
+
[Add more aliases](./../api.md#date-format-aliases)
0 commit comments