Skip to content

[pkg/ottl] OTTL Converter Function that is able to create a new time.Time type from a string. #22007

@TylerHelmuth

Description

@TylerHelmuth

Create an OTTL Converter Function(s), probably called Time, that is able to create a new time.Time type from a string. Something similar to https://pkg.go.dev/time#Parse or https://github.com/knz/strtime or https://github.com/itchyny/timefmt-go can be used.

The function should take 2 parameters, a string (represented as a StringGetter) that represents the time and a string (represented as a StringGetter) that represents the format that the time should be parse. We should also support standard names for common formats in the second parameter, like RFC3339 or ISO 8601 that the function would know how to interpret.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions