-
Notifications
You must be signed in to change notification settings - Fork 24
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
Why is EpochTimeStamp discouraged? #149
Comments
OK, so in WICG/cookie-store#214 I was corrected about my misunderstanding here. Apparently At this point I think this issue is a complaint about naming and documentation. It is confusing that when we have two types, I guess this might be a temporary problem though. According to Webdex, Notifications API is the only user of |
I vaguely recall the numbers would get too large if you wanted to do sub-milliseconds since epoch. If that's not accurate why would we have changed how events do this? |
Yes, that's right, but you could still use double instead of unsigned long long and have the same possible integers, just with some imperfect sub-millisecond fractional parts. |
Makes sense. I guess Notifications could use it then, unless some users really expect integers. But we'd definitely want to point out the problem with sub-millisecond times if you pick the epoch option in this standard. cc @noamr |
Yeah, though I'm not sure we should close this just yet as it seems we might be able to remove EpochTimeStamp per @domenic's feedback. |
https://w3c.github.io/geolocation-api/#position_interface appears to use And yes GeolocationPosition is in webdex hmmm |
@dontcallmedom see above for a few WebDex failures; curious if it's easily fixable. |
@domenic at the moment, Webdex only finds definitions that use the "canonical" link for the term; the Geolocation API uses the outdated https://www.w3.org/TR/hr-time-3/#dom-epochtimestamp link (instead of the number-less version); Webdex could probably be updated to find more matching links, but with that said, for IDL terms used in IDL fragments, WebIDLpedia is probably a more reliable source of usage since it operates in a well-defined namespace: https://dontcallmedom.github.io/webidlpedia/names/EpochTimeStamp.html does list Geolocation (and a few other cases) |
I don't know why Geolocation API is linking to hr-time-3. There's nothing in the source which would indicate it is preferring it over linking to hr-time. The data-cite attribute is just set to "hr-time". |
@dontcallmedom - any idea how we could modify Geolocation to point at the numberless version? |
hmm... re-diving into this, it sounds like this isn't specific to Geolocation, but the default in ReSpec - and sounds like it has been so for a while now - maybe worth bumping the issue there? |
E.g., any platform API which wants to interoperate with JavaScript
Date
objects, would benefit from usingEpochTimeStamp
.The text was updated successfully, but these errors were encountered: