okutil_time_add_day

 

Description

Add day(s) to time data when hours wrap after 24.

Syntax

int okutil_time_add_day( double * pIn, double * pOut, int nSize )

Parameters

pIn
[input] time data
pOut
[output] processed time data, NULL for only checking
nSize
[input] vector size

Return

< 0
if NULL pIn
0
no need to add day
> 0
number of wraps in the data that day(s) added

Examples

EX1

void tt(int nCol = 0)
{
        Worksheet wks = Project.ActiveLayer();
        Column aa = wks.Columns(nCol);
        vector vv(aa);
        int nSize = vv.GetSize();
        int nn = okutil_time_add_day(vv, NULL, nSize);
        out_int("nn = ", nn);
}

Remark

See Also

Header to Included

origin.h

Reference