| |
Year.
| |
Month.
| |
Day.
| |
Hour.
| |
Minute.
| |
Second.
| |
|
void ASCalendarTimeSpanAddWithBase(const ASCalendarTimeSpan timeSpan1, const ASCalendarTimeSpan timeSpan2, const ASDate baseDate, ASCalendarTimeSpan result);
timeSpan1 | The first calendar time span to add.
|
timeSpan2 | The calendar time span to add.
|
baseDate | The base date, or
NULL to use Jan 1 1970 00:00:00, the epoch time. |
result | The calendar time span structure in which to store the result.
|
ASInt32 ASCalendarTimeSpanCompare(const ASCalendarTimeSpan timeSpan1, const ASCalendarTimeSpan timeSpan2, const ASDate baseDate);
timeSpan1 | The first calendar time span.
|
timeSpan2 | The second calendar time span.
|
baseDate | The base date, or
NULL to use Jan 1 1970 00:00:00, the epoch time. |
1 if timeSpan1 > timeSpan2, 0 if they are equal, and-1 if timeSpan1 < timeSpan2. timeSpan2 is less than timeSpan1, the result is negative. Because the values in a calendar time span are not absolute (for example, a leap year has a different number of days), they are resolved with respect to the base date before the addition is done. The result is broken down into years, months, and so on, in the highest denomination possible. For example, a difference of 13 months is reported as 1 year and 1 month. void ASCalendarTimeSpanDiff(const ASCalendarTimeSpan timeSpan1, const ASCalendarTimeSpan timeSpan2, const ASDate baseDate, ASCalendarTimeSpan result);
timeSpan1 | The first calendar time span.
|
timeSpan2 | The second calendar time span.
|
baseDate | The base date, or
NULL to use Jan 1 1970 00:00:00, the epoch time. |
result | The calendar time span object in which to store the difference.
|