【发布时间】:2008-11-29 15:44:14
【问题描述】:
如何计算 C(任何库等)中 2 个日期之间的时间段?
程序应将两个(本地)日期作为输入,并提供它们之间的持续时间作为输出。
例如,
startDate = OCT-09-1976 and endDate = OCT-09-2008
should show a duration of 32 years.
startDate = OCT-09-1976 and endDate = DEC-09-2008
should show a duration of 32 years and 2 months.
谢谢。
【问题讨论】: