-
Notifications
You must be signed in to change notification settings - Fork 1
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
Switch To Human Readable Time Values #43
Comments
What form will this take? I don't the data defined over the wire needs to change, just how it is displayed. |
Replace the Part of the issue with using By using the |
I agree the wire type should not be int32, but the downside to using time.ParseDuration is that it may not supported in other languages. I think we can either switch to int64 or use google.protobuf.Duration. Personally, I also like how Obj-C does duration with seconds in a float64. |
We actually aren't using time.Duration directly we're using the "semantics" which will work in every language because it's a string. So if someone wants to specify a 1hr timeout, they would simply give "1h". Your link looks really interesting and cross-language friendly, I'll check that out. |
If nothing else needs to read the value programically. Then that's a good idea. |
The only "thing" that should be reading the value programatically is TemporalX, which since it's Golang can handle the time conversion. |
The text was updated successfully, but these errors were encountered: