Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess it allows you to implement a JVM that runs on bare metal, or a host without timezone support.


Yep, it makes it easier to port the JRE to platforms like Windows that have an entirely different TZ system. Python, for example, has the same problem. Historically, Python took the stance of providing a "naive" datetime module that provides a conversion API, but delegated the actual TZ conversion to external implementations (dateutil, pytz). Only recently (as of 3.9) have they added a stdlib implementation that uses system-level zoneinfo by default.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: