SystemTimeToJulianDate

 

Description

Convert a SYSTEMTIME structure to a Julian date value.

Syntax

BOOL SystemTimeToJulianDate( double * lpdDate, SYSTEMTIME * lpSysTime, double* lpdMillSec = NULL)

Parameters

lpdDate
[output] pointer to the destination value
lpSysTime
[input] pointer to the source SYSTEMTIME structure
lpdMillSec
[output] pointer to receive the double type value of millisecond.

Return

TRUE if successful, else FALSE

Examples

EX1

void    SystemTimeToJulianDate_ex1()
{
    SYSTEMTIME st;
    GetSystemTime(&st);              // gets current time
    double dDate;
    SystemTimeToJulianDate(&dDate, &st);
    out_str(get_date_str(dDate, LDF_LONG));
}

Remark

See Also

header to Include

origin.h

Reference