Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkg/ottl] Add minute converter #33200

Conversation

sinkingpoint
Copy link
Contributor

Description:

This adds in a Minute converter that takes a time.Time and returns the int minute component. Analogous to what we already have with Hour

Link to tracking Issue: #33106

Testing: Added two unit tests based on the existing Hour ones

Documentation: Added the new converter to the ottlfuncs README.md

This adds in a converter to pull the minute component
out of a `time.Time`.

Signed-off-by: sinkingpoint <[email protected]>
@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label May 28, 2024
@evan-bradley evan-bradley merged commit ffe0c27 into open-telemetry:main May 28, 2024
168 of 169 checks passed
@github-actions github-actions bot added this to the next release milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/ottl ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants