8.2.7 Date2datetime

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

Description

Convert a double in Julian date format to a system time struct

Syntax

pyDateTime Date2datetime( double dDate )

Parameters

dDate
date-time value to be converted

Return

a struct to receive conversion result

struct pyDateTime
{
	SYSTEMTIME	sysTm;
	int		microSec;
};

Examples

Ex1:

import PyOrigin
dateT = PyOrigin.Date2datetime(2458310.5811)

See Also

datetime2Date