Debian Codegraph @

doc/antora/modules/unlang/pages/xlat/character.adoc

raw
1 = Single Letter Expansions
2
3 The following are single letter expansions. These expansions do not
4 use the typical `%{...}` format. Instead, they are short-cuts for
5 simple, common cases.
6
7 == Miscellaneous
8
9 `%%`::
10
11 Returns `%`.
12
13
14 `%n`::
15
16 Returns the requesrt number.
17
18
19 == Current Time
20
21 `%c`::
22
23 The current Unix epoch time in seconds. This is an unsigned decimal number.
24 It should be used with time-based calculations.
25
26 `%C`::
27
28 The microsecond component of the current epoch time. This is an unsigned
29 decimal number. It should be used with time-based calculations.
30
31
32 == Request Time
33
34 `%l`::
35
36 The Unix timestamp of when the request was received. This is an unsigned
37 decimal number. It should be used with time-based calculations.
38
39 `%Y`::
40
41 Four-digit year when the request was received.
42
43 `%m`::
44
45 Numeric month when the request was received.
46
47 `%d`::
48
49 Numeric day of the month when the request was received.
50
51 `%H`::
52
53 Hour of the day when the request was received.
54
55 `%G`::
56
57 Minute component of the time when the request was received.
58
59 `%e`::
60
61 Second component of the time when the request was received.
62
63 `%M`::
64
65 Microsecond component of the time when the request was received.
66
67 `%D`::
68
69 Request date in the format `YYYYMMDD`.
70
71 `%S`::
72
73 Request timestamp in SQL format, `YYYY-mmm-ddd HH:MM:SS`.
74
75 `%t`::
76
77 Request timestamp in _ctime_ format, `Www Mmm dd HH:MM:SS YYYY`.
78
79 `%T`::
80
81 Request timestamp in ISO format, `YYYY-mm-ddTHH:MM:SS.000`.
82
83
84 // Copyright (C) 2020 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
85 // Development of this documentation was sponsored by Network RADIUS SAS.