Hacker News new | ask | show | jobs
by deepsun 2586 days ago
I believe it was all clarified long ago in Java (Joda library, that was reimplemented in newer versions in core SDK as java.time).
2 comments

Indeed! That library, as incorporated into the jdk, seems to me like the gold standard of datetime programming in standard libraries. Good type-level distinctions, good defaults, good extensibility... chef kissing fingers
Joda is clearer semantically, even today. The core just can't seem to get certain features right for developers.