Skip to content

Commit

Permalink
[chore][pkg/ottl] Update Time directives (open-telemetry#35360)
Browse files Browse the repository at this point in the history
I noticed these directives are missing from the documentation. No change
to actual functionality. [Here is the list of directives used in
code](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/5ec6872d5bffeddcb708437e9be98ab06b668d1a/internal/coreinternal/timeutils/internal/ctimefmt/ctimefmt.go#L23).
  • Loading branch information
djaglowski authored and jriguera committed Oct 4, 2024
1 parent 4aaa99b commit 0ee005e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ottl/ottlfuncs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,10 @@ If either `target` or `format` are nil, an error is returned. The parser used is
|`%s` | Nanosecond as a zero-padded number | 00000000, ..., 99999999 |
|`%z` | UTC offset in the form ±HHMM[SS[.ffffff]] or empty | +0000, -0400 |
|`%Z` | Timezone name or abbreviation or empty | UTC, EST, CST |
|`%i` | Timezone as +/-HH | -07 |
|`%j` | Timezone as +/-HH:MM | -07:00 |
|`%k` | Timezone as +/-HH:MM:SS | -07:00:00 |
|`%w` | Timezone as +/-HHMMSS | -070000 |
|`%D`, `%x` | Short MM/DD/YYYY date, equivalent to %m/%d/%y | 01/21/2031 |
|`%F` | Short YYYY-MM-DD date, equivalent to %Y-%m-%d | 2031-01-21 |
|`%T`,`%X` | ISO 8601 time format (HH:MM:SS), equivalent to %H:%M:%S | 02:55:02 |
Expand Down

0 comments on commit 0ee005e

Please sign in to comment.