time module
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem/challenge you have**
even though ytt does not have access to current time, it's handy to be able to work with date/time formats. for example i'd like to parse two iso8601 timestamps, compare them or increment/decrement them.
Example of a timestamp i'd like to work with (from k8s): `creationTimestamp: "2021-06-11T05:00:49Z"` and want to be able to add/substract durations (as desribed by go's time.Duration)
**Describe the solution you'd like**
i think exposing time functionality as provided by go will be the easiest way to go about this. lets discuss the api for time module in this issue.
---
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by reviewing ytt's existing module conventions and the Go time package, especially ISO 8601 parsing and time.Duration behavior. Done would require an agreed API for parsing, comparing, and adjusting timestamps, followed by implementation and tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100