2.1.8.35 str_to_time


Description

Convert a time formated string to a Julian value

Syntax

double str_to_time( LPCTSTR lpcszTime, DWORD dwFlags = 0 )

Parameters

lpcszTime
[input] string containing the time
dwFlags

Return

A double containing a Julian date value

Examples

EX1

void str_to_time_ex1()
{
    string strTime = "001:12:00:00.0"; // 1 day, 12 hrs, 0 mins, 0 secs
    double dTime;
    dTime = str_to_time(strTime);
    printf("%s = %f\n", strTime, dTime);
}

Remark

See Also

Header to Include

origin.h

Reference