RSP_timeConvert
Name
RSP_timeConvert -- Converts time value to long.
Synopsis
long RSP_timeConvert
(char *data);
Description
This function converts a string in the
form of "2 days, 5 hours, 6 minutes"
into a long integer (suitable for use
for the Uptime, and equivalent,
modules). Available suffixes are:
years
weeks
days
hours
minutes
seconds
Returns
Returns a long integer representation of the given data (or -1 if an error
occurred).
Error Conditions
If an error occurs, -1 will be returned
and rsp_error will be set to the
following error code:
RSP_INVALID_ARGS
RSP_BAD_CONVERT