Skip to content

Commit 8669149

Browse files
Merge pull request #174 from axoflow/time-macros
add xref to date-related macros section for each date-related macro
2 parents 001206d + 543a007 commit 8669149

File tree

14 files changed

+29
-27
lines changed

14 files changed

+29
-27
lines changed

content/chapter-manipulating-messages/customizing-message-format/reference-macros/_index.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The {{% param "product.abbrev" %}} application uses the following procedure to d
8282

8383
## HOUR12, C_HOUR12, R_HOUR12, S_HOUR12 {#macro-hour12}
8484

85-
*Description:* The hour of day the message was sent in 12-hour clock format. See also the [`${AMPM}`]({{< relref "/chapter-manipulating-messages/customizing-message-format/reference-macros/_index.md" >}}) macro. 12AM is midnight. Available in {{% param "product.abbrev" %}} 3.4 and later.
85+
*Description:* The hour of day the message was sent in 12-hour clock format. See also the [`${AMPM}`]({{< relref "/chapter-manipulating-messages/customizing-message-format/reference-macros/_index.md" >}}) macro. 12AM is midnight. Available in {{% param "product.abbrev" %}} 3.4 and later. {{% include-headless "chunk/macro-date-ref.md" %}}
8686

8787
## HOST {#macro-host}
8888

@@ -116,13 +116,13 @@ The IP protocol version used to retrieve or receive the message. Contains either
116116

117117
## ISODATE, C_ISODATE, R_ISODATE, S_ISODATE {#macro-isodate}
118118

119-
*Description:* Date of the message in the ISO 8601 compatible standard timestamp format (`yyyy-mm-ddThh:mm:ss+-ZONE`), for example: `2006-06-13T15:58:00.123+01:00`. If possible, it is recommended to use `${ISODATE}` for timestamping. Note that AxoSyslog can produce fractions of a second (for example, milliseconds) in the timestamp by using the `frac-digits()` global or per-destination option.
119+
*Description:* Date of the message in the ISO 8601 compatible standard timestamp format (`yyyy-mm-ddThh:mm:ss+-ZONE`), for example: `2006-06-13T15:58:00.123+01:00`. If possible, it is recommended to use `${ISODATE}` for timestamping. Note that AxoSyslog can produce fractions of a second (for example, milliseconds) in the timestamp by using the `frac-digits()` global or per-destination option. {{% include-headless "chunk/macro-date-ref.md" %}}
120120

121121
{{< include-headless "wnt/n-frac-trunc.md" >}}
122122

123123
## ISOWEEK, C_ISOWEEK, R_ISOWEEK, S_ISOWEEK {#macro-isoweek}
124124

125-
*Description:* The number of week according to the ISO 8601 standard. Note that the `${WEEK}` macro that has been available in returns a non-standard week number that can differ from the value returned by the `${ISOWEEK}` macro.
125+
*Description:* The number of week according to the ISO 8601 standard. Note that the `${WEEK}` macro that has been available in returns a non-standard week number that can differ from the value returned by the `${ISOWEEK}` macro. {{% include-headless "chunk/macro-date-ref.md" %}}
126126

127127
Available in 3.24 and later.
128128

@@ -153,19 +153,19 @@ Note that before AxoSyslog version 3.0, the `${MESSAGE}` macro included the prog
153153

154154
## MONTH_ABBREV, C_MONTH_ABBREV, R_MONTH_ABBREV, S_MONTH_ABBREV {#macro-month-abbrev}
155155

156-
*Description:* The English abbreviation of the month name (3 letters).
156+
*Description:* The English abbreviation of the month name (3 letters). {{% include-headless "chunk/macro-date-ref.md" %}}
157157

158158
## MONTH_NAME, C_MONTH_NAME, R_MONTH_NAME, S_MONTH_NAME {#macro-month-name}
159159

160-
*Description:* The English name of the month name.
160+
*Description:* The English name of the month name. {{% include-headless "chunk/macro-date-ref.md" %}}
161161

162162
## MONTH_WEEK, C_MONTH_WEEK, R_MONTH_WEEK, S_MONTH_WEEK {#macro-month-week}
163163

164-
*Description:* The number of the week in the given month (0-5). The week with numerical value 1 is the first week containing a Monday. The days of month before the first Monday are considered week 0. For example, if a 31-day month begins on a Sunday, then the 1st of the month is week 0, and the end of the month (the 30th and 31st) is week 5.
164+
*Description:* The number of the week in the given month (0-5). The week with numerical value 1 is the first week containing a Monday. The days of month before the first Monday are considered week 0. For example, if a 31-day month begins on a Sunday, then the 1st of the month is week 0, and the end of the month (the 30th and 31st) is week 5. {{% include-headless "chunk/macro-date-ref.md" %}}
165165

166166
## MSEC, C_MSEC, R_MSEC, S_MSEC {#macro-msec}
167167

168-
*Description:* The millisecond the message was sent.
168+
*Description:* The millisecond the message was sent. {{% include-headless "chunk/macro-date-ref.md" %}}
169169

170170
Available in {{% param "product.abbrev" %}} version 3.4 and later.
171171

@@ -318,7 +318,7 @@ Available in {{% param "product.abbrev" %}} 4.10 and later.
318318

319319
## STAMP, R_STAMP, S_STAMP {#macro-stamp}
320320

321-
*Description:* A timestamp formatted according to the [`ts-format()`]({{< relref "/chapter-global-options/reference-options/_index.md" >}}) global or per-destination option.
321+
*Description:* A timestamp formatted according to the [`ts-format()`]({{< relref "/chapter-global-options/reference-options/_index.md" >}}) global or per-destination option. {{% include-headless "chunk/macro-date-ref.md" %}}
322322

323323
## SYSUPTIME {#macro-sysuptime}
324324

@@ -408,7 +408,7 @@ Available in {{% param "product.abbrev" %}} version 3.7 and later.
408408

409409
## USEC, C_USEC, R_USEC, S_USEC {#macro-usec}
410410

411-
*Description:* The microsecond the message was sent.
411+
*Description:* The microsecond the message was sent. {{% include-headless "chunk/macro-date-ref.md" %}}
412412

413413
Available in {{% param "product.abbrev" %}} version 3.4 and later.
414414

@@ -418,16 +418,16 @@ Available in {{% param "product.abbrev" %}} version 3.4 and later.
418418

419419
## WEEK_DAY_ABBREV, C_WEEK_DAY_ABBREV, R_WEEK_DAY_ABBREV, S_WEEK_DAY_ABBREV {#macro-week-day-abbrev}
420420

421-
*Description:* The 3-letter English abbreviation of the name of the day the message was sent, for example, `Thu`.
421+
*Description:* The 3-letter English abbreviation of the name of the day the message was sent, for example, `Thu`. {{% include-headless "chunk/macro-date-ref.md" %}}
422422

423423
## WEEK_DAY, C_WEEK_DAY, R_WEEK_DAY, S_WEEK_DAY {#macro-week-day}
424424

425-
*Description:* The day of the week as a numerical value (1-7).
425+
*Description:* The day of the week as a numerical value (1-7). {{% include-headless "chunk/macro-date-ref.md" %}}
426426

427427
## WEEKDAY, C_WEEKDAY, R_WEEKDAY, S_WEEKDAY {#macro-weekday}
428428

429-
*Description:* These macros are deprecated, use [${WEEK_DAY_ABBREV}, ${R_WEEK_DAY_ABBREV}, ${S_WEEK_DAY_ABBREV}]({{< relref "/chapter-manipulating-messages/customizing-message-format/reference-macros/_index.md" >}}) instead. The 3-letter name of the day of week the message was sent, for example, `Thu`.
429+
*Description:* These macros are deprecated, use [${WEEK_DAY_ABBREV}, ${R_WEEK_DAY_ABBREV}, ${S_WEEK_DAY_ABBREV}]({{< relref "/chapter-manipulating-messages/customizing-message-format/reference-macros/_index.md" >}}) instead. The 3-letter name of the day of week the message was sent, for example, `Thu`. {{% include-headless "chunk/macro-date-ref.md" %}}
430430

431431
## WEEK_DAY_NAME, C_WEEK_DAY_NAME, R_WEEK_DAY_NAME, S_WEEK_DAY_NAME {#macro-week-day-name}
432432

433-
*Description:* The English name of the day.
433+
*Description:* The English name of the day. {{% include-headless "chunk/macro-date-ref.md" %}}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
---
3+
See {{% xref "/chapter-manipulating-messages/customizing-message-format/date-macros/_index.md" %}}.
4+

content/headless/chunk/macro-date.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
## DATE, C_DATE, R_DATE, S_DATE
66

7-
*Description:* Date of the message using the BSD-syslog style timestamp format (month/day/hour/minute/second, each expressed in two digits). This is the original syslog time stamp without year information, for example: `Jun 13 15:58:00`.
8-
7+
*Description:* Date of the message using the BSD-syslog style timestamp format (month/day/hour/minute/second, each expressed in two digits). This is the original syslog time stamp without year information, for example: `Jun 13 15:58:00`. {{% include-headless "chunk/macro-date-ref.md" %}}

content/headless/chunk/macro-day.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
## DAY, C_DAY, R_DAY, S_DAY
66

7-
*Description:* The day the message was sent.
8-
7+
*Description:* The day the message was sent. {{% include-headless "chunk/macro-date-ref.md" %}}

content/headless/chunk/macro-fulldate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
## FULLDATE, C_FULLDATE, R_FULLDATE, S_FULLDATE
66

7-
*Description:* A nonstandard format for the date of the message using the same format as `${DATE}`, but including the year as well, for example: `2006 Jun 13 15:58:00`.
7+
*Description:* A nonstandard format for the date of the message using the same format as `${DATE}`, but including the year as well, for example: `2006 Jun 13 15:58:00`. {{% include-headless "chunk/macro-date-ref.md" %}}
88

content/headless/chunk/macro-hour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
## HOUR, C_HOUR, R_HOUR, S_HOUR
66

7-
*Description:* The hour of day the message was sent.
7+
*Description:* The hour of day the message was sent. {{% include-headless "chunk/macro-date-ref.md" %}}
88

content/headless/chunk/macro-min.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
## MIN, C_MIN, R_MIN, S_MIN
66

7-
*Description:* The minute the message was sent.
7+
*Description:* The minute the message was sent. {{% include-headless "chunk/macro-date-ref.md" %}}
88

content/headless/chunk/macro-month.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
## MONTH, C_MONTH, R_MONTH, S_MONTH
66

7-
*Description:* The month the message was sent as a decimal value, prefixed with a zero if smaller than 10.
7+
*Description:* The month the message was sent as a decimal value, prefixed with a zero if smaller than 10. {{% include-headless "chunk/macro-date-ref.md" %}}
88

content/headless/chunk/macro-sec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
## SEC, C_SEC, R_SEC, S_SEC
66

7-
*Description:* The second the message was sent.
7+
*Description:* The second the message was sent. {{% include-headless "chunk/macro-date-ref.md" %}}
88

content/headless/chunk/macro-tz.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
## TZ, C_TZ, R_TZ, S_TZ
66

7-
*Description:* An alias of the [${TZOFFSET}](#macro-tzoffset.htm) macro.
7+
*Description:* An alias of the [${TZOFFSET}](#macro-tzoffset.htm) macro. {{% include-headless "chunk/macro-date-ref.md" %}}
88

0 commit comments

Comments
 (0)