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.
我找到了一种扭转时间的方法!在 Rebol 中转换为天数:将其添加到某个日期,然后减去该日期。
>> dummy-date: 12-Dec-2012 == 12-Dec-2012 >> (dummy-date + 44835:11:58) - dummy-date == 1868
这……有点尴尬。有没有更好的内置方法?
另一种选择是:
>> round/to 44835:11:58 / 24:00 1 == 1868
>> pick 44835:11:58 / 24 1 == 1868
或短
first 44835:11:58 / 24
time: 44835:11:58 round time/1 / 24 round first time / 24