typedef
struct
_t_ASTimeSpanRec
*
ASTimeSpan
;
ASCount
ASGetSecs(
void
);
void
ASTimeSpanAdd(
const
ASTimeSpan
timeSpan1
,
const
ASTimeSpan
timeSpan2
,
ASTimeSpan
result
);
timeSpan1 | The first time span to add.
|
timeSpan2 | The second time span to add.
|
result | The time span object in which to store the result.
|
ASInt32
ASTimeSpanCompare(
const
ASTimeSpan
timeSpan1
,
const
ASTimeSpan
timeSpan2
);
timeSpan1 | The first time span.
|
timeSpan2 | The second time span.
|
1
if timeSpan1
>
timeSpan2
, 0
if they are equal, and-1
if timeSpan1
<
timeSpan2
. void
ASTimeSpanCopy(
const
ASTimeSpan
original
,
ASTimeSpan
copy
);
original | The time span to be copied.
|
copy | The time span into which the data is copied.
|
void
ASTimeSpanDestroy(
ASTimeSpan
timeSpan
);
timeSpan | The time span.
|
timeSpan2
is less than timeSpan1
, the result is negative. void
ASTimeSpanDiff(
const
ASTimeSpan
timeSpan1
,
const
ASTimeSpan
timeSpan2
,
ASTimeSpan
result
);
timeSpan1 | The first time span.
|
timeSpan2 | The second time span.
|
result | The time span object in which to store the difference.
|
ASTimeSpan
ASTimeSpanDup(
const
ASTimeSpan
timeSpan
);
timeSpan | The time span to duplicate.
|
ASInt32
ASTimeSpanGetASInt32(
ASTimeSpan
timeSpan
,
ASBool
*
outOverflow
);
timeSpan | The time span object.
|
outOverflow |
void
ASTimeSpanNegate(
ASTimeSpan
timeSpan
);
timeSpan | The time span.
|
ASTimeSpan
ASTimeSpanNew(
void
);
x
seconds, where x
is the 64-bit signed integer obtained from concatenating highBits
and lowBits
. void
ASTimeSpanSet(
ASTimeSpan
timeSpan
,
ASInt32
highBits
,
ASUns32
lowBits
);
timeSpan | The time span object.
|
highBits | The most significant word in the desired 64-bit signed integer value.
|
lowBits | The least significant word in the desired 64-bit signed integer value.
|
void
ASTimeSpanSetFromASInt32(
ASTimeSpan
timeSpan
,
ASInt32
numSeconds
);
timeSpan | The time span object.
|
numSeconds | The number of seconds.
|
void
ASTimeSpanSetFromString(
ASTimeSpan
timeSpan
,
const
char
*
numSecondsString
);
timeSpan | The time span object.
|
numSecondsString | The string containing the number of seconds. The string must consist of an optional minus sign (for negative numbers) followed by decimal digits. No white spaces are allowed anywhere in the string.
|