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.
所以在java中我们有TimeUnit枚举和很棒的方法。Ruby语言中的任何类比?
我需要转换器秒到毫秒,毫秒到天等等
我不确定这是否与 TimeUnit 有 1 对 1 的对应关系,但有时会非常方便:https ://github.com/kachick/time-unit