]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove '&' from the date module
authorAlan T. DeKok <aland@freeradius.org>
Sat, 8 Mar 2025 14:26:14 +0000 (09:26 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 8 Mar 2025 14:26:14 +0000 (09:26 -0500)
doc/antora/modules/reference/pages/raddb/mods-available/date.adoc
raddb/mods-available/date

index 4cabe7d1e6d734f71e01255fa3e18c68827b9f9b..0083a6c65e9314e4b854572b2a20068bf7e3c6e2 100644 (file)
@@ -62,7 +62,7 @@ relevant attribute.   If the attributes is of type `string`, the
 string will be parsed according to the `format` configuration,
 and a Unix date will be returned, as integer seconds since the epoch.
 
-For example, `%date(&Event-Timestamp)` will use the date from the
+For example, `%date('Event-Timestamp')` will use the date from the
 `link:https://freeradius.org/rfc/rfc2869.html#Event-Timestamp[Event-Timestamp]` attribute as the source of the date for printing.
 
 ."Get time" mode:
@@ -95,12 +95,13 @@ The following expansions return integer numbers:
 
 [options="header,autowidth"]
 |===
-| Parameter       | Description
-| %l              | request time in seconds since the epoch.
-| %M              | request time microsecond component.
-| %c              | current time in seconds since the epoch.
-| %C              | current time microsecond component.
-| &Attribute-Name | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp.
+| Parameter        | Description
+|===
+| %l               | request time in seconds since the epoch.
+| %M               | request time microsecond component.
+| %c               | current time in seconds since the epoch.
+| %C               | current time microsecond component.
+| 'Attribute-Name' | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp.
 |===
 
 
index 6b8d180f3d533ddfde34547ee3b5d4fb249a2153..d77468f3790a09ddc66c7c7f1e2daa2b987a6a76 100644 (file)
@@ -73,7 +73,7 @@ date date_iso {
 #  string will be parsed according to the `format` configuration,
 #  and a Unix date will be returned, as integer seconds since the epoch.
 #
-#  For example, `%date(&Event-Timestamp)` will use the date from the
+#  For example, `%date('Event-Timestamp')` will use the date from the
 #  `Event-Timestamp` attribute as the source of the date for printing.
 #
 #  ."Get time" mode:
@@ -106,11 +106,12 @@ date date_iso {
 #
 #  [options="header,autowidth"]
 #  |===
-#  | Parameter       | Description
-#  | %l              | request time in seconds since the epoch.
-#  | %M              | request time microsecond component.
-#  | %c              | current time in seconds since the epoch.
-#  | %C              | current time microsecond component.
-#  | &Attribute-Name | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp.
+#  | Parameter        | Description
+#  |===
+#  | %l               | request time in seconds since the epoch.
+#  | %M               | request time microsecond component.
+#  | %c               | current time in seconds since the epoch.
+#  | %C               | current time microsecond component.
+#  | 'Attribute-Name' | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp.
 #  |===
 #