3.2.8 datetime2Date

Description

Convert a SYSTEMTIME structure to a Julian date value.

Syntax

double datetime2Date( pyDateTime & tmDateTime )

Parameters

tmDateTime
the source pyDateTime structure to be converted
struct pyDateTime
{
	SYSTEMTIME	sysTm;
	int		microSec;
};

Return

The destination value

Examples

Ex1:

import PyOrigin
dateT = PyOrigin.Date2datetime(2458310.5811)
date = PyOrigin.datetime2Date(dateT)

See Also

Date2datetime