Chetan Gaonker | 7f4bf74 | 2016-05-04 15:56:08 -0700 | [diff] [blame] | 1 | # |
| 2 | # Registers xlat to convert between time formats. |
| 3 | # |
| 4 | # xlat input string is an attribute name. If this attribute is of date |
| 5 | # or integer type, the date xlat will convert it to a time string in |
| 6 | # the format of the format config item. |
| 7 | # |
| 8 | # If the attribute is a string type, date will attempt to parse it in |
| 9 | # the format specified by the format config item, and will expand |
| 10 | # to a Unix timestamp. |
| 11 | # |
| 12 | date { |
| 13 | format = "%b %e %Y %H:%M:%S %Z" |
| 14 | } |