Todatetimemx – Yokogawa PC-Based MX100 User Manual
Page 356

5-98
IM MX190-01E
toDateTimeMX
Syntax
void toDateTimeMX(MXDateTime * pMXDateTime, int * pYear, int *
pMonth, int * pDay, int * pHour, int * pMinute, int *
pSecond);
Declaration
Public Declare Sub toDateTimeMX Lib "DAQMX"(ByRef pMXDateTime
As MXDateTime, ByRef pYear As Long, ByRef pMonth As Long,
ByRef pDay As Long, ByRef pHour As Long, ByRef pMinute As
Long, ByRef pSecond As Long)
Parameters
pMXDateTime
Specify the time information.
pYear
Specify the destination where the year value is returned.
pMonth
Specify the destination where the month value is returned.
pDay
Specify the destination where the day value is returned.
pHour
Specify the destination where the hour value is returned.
pMinute
Specify the destination where the minute value is returned.
pSecond
Specify the destination where the second value is returned.
Description
Converts the number of seconds with respect to Jan. 1, 1970 in the specified time
information into year, month, day, hour, minute, and second values.
• A four digit value is returned for the year. A value between 1 and 12 is returned
for the month. A value between 1 and 31 is returned for the day. A value between
0 and 23 is returned for the hour. A value between 0 and 59 is returned for the
minute. A value between 0 and 59 is returned for the second.
Reference
CDAQDateTime::toLocalDateTime
5.1 Details of Functions - MX100 (Visual C/Visual Basic) -