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.
我试图以小时分钟和秒表示值 3419779(以秒为单位)但是使用 joda 时间周期返回 -243h-06min-28,我可以用什么来以大约 950 小时 x 的正确形式表示它分钟?
我发现我做错了什么,我乘以秒 * 1000 返回一个负整数,因为结果非常大,为了纠正我做了秒 * 1000L。
该问题是由如上所述的整数溢出引起的。请将问题标记为已回答。