8.2.8 datetime2Date
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 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)