Java 7 日期/时间 API
我注意到 Java 7 API 的快照已在 java 上发布。 sun.com 有一段时间了,但我刚刚浏览了一下,专门寻找承诺的受 JodaTime 启发的日期/时间 API。唉,我在已发布的文档中找不到任何提及它的内容。
这是因为它还没有完成,而且这个发布的 API 是一个早期的、不完整的快照,还是因为这个想法已经被悄悄放弃了?
I notice that a snapshot of the Java 7 API has been up on java.sun.com for some time, but I only just had a look through it just now, looking specifically for the promised JodaTime-inspired Date/Time API. Alas, I can find no mention of it in the published docs.
Is this because it simply hasn't been done yet, and this published API is an early, incomplete snapshot, or because the idea has been quietly dropped?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Alex Miller 正在运行一个有关 jdk7 功能的信息丰富的网站。
JSR 310 尚未确认 根据此页面。
Alex Miller is running a very informative website about jdk7 features.
JSR 310 is still not confirmed according to this page.
上次我听说,JSR 310 落后了并且可能无法进入 Java 7。是的,这是一个巨大的耻辱 - 尽管至少在那之前我们已经有了 Joda Time 作为权宜之计。
Last I heard, JSR 310 was running behind and might not get into Java 7. And yes, that's a huge shame - although at least we've got Joda Time as a stopgap until then.
仅供参考,此 JSR 提供了初步的日期时间 API 在这里。这个快照的日期是一月底,所以我不知道它是最新的:(
FYI a preliminary datetime API from this JSR is available here. This snapshot is dated the end of January, so I have no idea how up-to-date it is :(
它可能会作为一个模块添加,而不是紧密集成到 jdk 中(例如 jaxb)。这可不太好。同时,您可以查看 一月 javadoc< /a>,但很多内容都发生了更改。
It is possible it will be added as a module and not tightly integrated into the jdk (like jaxb for example). It would not be nice. In the meantime you can check the january javadoc, but a lot has changed.