Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
用Joda-Time库表示一年中一周的最佳方式是什么?我看起来像YearMonth代表一年中的月份一样优雅。
YearMonth
经过一番搜索,我找到了使用Partial类来解决这个问题的解决方案。
Partial
Partial yearWeek = new Partial( new DateTimeFieldType[] {DateTimeFieldType.weekyear(), DateTimeFieldType.weekOfWeekyear()}, new int[] {year, week});