cosmos-sdk
cosmos-sdk copied to clipboard
Make FormatTimeString and ParseTimeString methods
Summary
We should make string counterparts to FormatTimeBytes and ParseTimeBytes https://github.com/cosmos/cosmos-sdk/blob/eee23d95312ae41fa4fe4f6b218926685304590b/types/utils.go#L64-L77, and then make the bytes method call into those
For Admin Use
- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
can we make use of generics here?
@ValarDragon would like to work on it , just to confirm we want to return string representation of time here ?
For state serialization, we want bytes. See the APIs @ValarDragon pointed out in the issue body 👍