TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Date and Time in Java 8: Timezones

38 pointsby rlmwover 12 years ago

5 comments

codekaover 12 years ago
This is so long overdue, but I feel like I've been using Joda Time for so long that the benefit of having it in the platform is kind of outweighed by the hassle of learning a new API.
评论 #4952906 未加载
评论 #4953970 未加载
aleyanover 12 years ago
I wonder how this library deals with ambiguous times around daylight savings. For example on the day of switching from summertime to wintertime the clock goes from 2:59 am to 2:00 am again resulting in the hour being repeated. If you know the correct time zone for that timestamp, it is still ambiguous which of the two UTC times it maps to.
评论 #4953646 未加载
评论 #4954030 未加载
评论 #4953743 未加载
bnrover 12 years ago
What's the use case for storing a time with timezone instead of just storing the UTC value?
评论 #4952497 未加载
评论 #4952882 未加载
评论 #4952961 未加载
评论 #4954047 未加载
RyanZAGover 12 years ago
The real solution is to get timezones thrown out. All they do is waste the time of everyone involved and create complicated issues around travel, finance, computing, etc.<p>They have no real benefit - if you want to come into work later in winter because it's dark where you live then just come in later! Changing time to suite this madness is insane, broken, and requires immediate fixes.<p>If we could get all the OS markets/net service providers to agree to a boycott, then nobody would even notice DST is gone as they just get their time from their phone/computer/radio/etc anyway.<p>I'll get the pitchforks and we can get this started. Anybody with me?! :)
评论 #4953341 未加载
评论 #4953962 未加载
bjhoops1over 12 years ago
I cringe every time I hear "Date" and "Java" in the same sentence.
评论 #4953193 未加载
评论 #4953634 未加载
评论 #4953979 未加载