GraphLayer::GetDateTimeHigherPrecisionDisplayFormat

 

Description

This function return a DateTime higher precision display format according to Axis specified

Syntax

int GetDateTimeHigherPrecisionDisplayFormat( string & str, LPCSTR lpcszAxis )

Parameters

str
[output] display format
lpcszAxis
[input] axis represent by "X", "Y", "Z"

Return

Return OULABEL_DATE or OULABEL_TIME if succeed, otherwise -1.

Examples

EX1

void GraphLayer_GetDateTimeHigherPrecisionDisplayFormat_ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if( !gl.IsValid() )
        return;

    string str;
    int nRet = gl.GetDateTimeHigherPrecisionDisplayFormat(str, "X");
    
    printf("GetDateTimeHigherPrecisionDisplayFormat: %s, return: %d\n", str, nRet);
}

Remark

See Also

header to Included

origin.h