-
Notifications
You must be signed in to change notification settings - Fork 159
Rename DateTimeDescriptor epochMillis
and epochNanos
#966
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
Comments
@matthias-pichler-warrify WDYT? Do you want to take care of it? |
Looks good to me 👍 |
Regarding nanoseconds: the jq docs say that all numbers are represented as IEEE 754 double precision floating point numbers: https://jqlang.github.io/jq/manual/v1.7/
and as it turns out these are too small to safely represent nanoseconds as an integer. (At least according to Number.MAX_SAFE_INTEGER in JS) So I am afraid we have to drop nanoseconds to ensure we have safe jq expressions |
That's fine to me, I didn't really like that we supported both in the first place anyways. So what, we should therefore have |
I think having |
Yeah, sure, why not? However, we need to properly document it so that users don't start to think that seconds and milliseconds are complementary components, but are instead mutually exclusive, don't you agree? |
not 100% sure what you mean ... you mean that I would like something like: echo:
sec: 1723190735
ms: 1723190735645 |
No, I mean that some users might wrongly think that sec are the seconds of the epoch, and ms the milliseconds, even if that's obivous to me it isn't. Something like 10 secs AND 10000 milliseconds, instead of just 10 secs OR 10000 milliseconds. I hope this is clearer 👅 |
Uh oh!
There was an error while loading. Please reload this page.
What would you like to be added:
epochMillis
andepochNanos
.iso8601
,epochMillis
andepochNanos
properties to aDateTimeDescriptor
object, so we avoid duplication (in both WorkflowDescriptor and TaskDescriptor).epochMillis
andepochNanos
to a newepoch
DateTimeDescriptor
property, for a cleaner aspect.Why is this needed:
ms
andns
).The proposal:
DateTime Descriptor
string
integer
integer
The text was updated successfully, but these errors were encountered: