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.
为什么这不给我整整几天的时间?
difftime("2015-04-22", "2014-10-30") Time difference of 173.9583 days
使用Date该类来避免时间戳、夏令时等的额外复杂性。
Date
> as.Date("2015-04-22") - as.Date("2014-10-30") Time difference of 174 days