Cdaqdarwindatetime::setline, Cdaqdarwindatetime::setnow, Cdaqdarwindatetime::todatetime – Yokogawa PC-Based MX100 User Manual
Page 466
![background image](/manuals/360310/466/background.png)
7-68
IM MX190-01E
CDAQDARWINDateTime::setLine
Syntax
int setLine(const char * strLine, int lenLine);
Parameters
strLine
Specify the line using a string.
lenLine
Specify the byte size of the line.
Description
Analyzes the specified line and stores the information in the data member.
The line format is the first two lines of the output format of the measured data in
ASCII code.
Specify the date and time in separate lines.
If the front of the line is D, it is interpreted as YYMMDD format.
If the front of the line is T, it is interpreted as HHMMSS format.
Otherwise, it is interpreted as YY-MM-DD hh:mm:ss.
Return value
Returns an error number.
Error:
Not data
The input data is too short. Or, the string incorrect.
Reference
toDateTime
CDAQDARWINDateTime::setNow
Syntax
voidsetNow(void);
Description
Gets the current data/time and stores it in the data member.
Reference
initialize
CDAQDateTime::setNow
CDAQDARWINDateTime::toDateTime
Syntax
void toDateTime(void);
Description
Converts the contents of the structure of the time information data field of the data
member structure into seconds elapsed since Jan. 1, 1970, and stores the result in
the seconds field.
Years less than 70 are corrected by adding 2000.
Reference
getDay getHour getMinute getMonth getSecond getYear
setMilliSecond setTime
7.4 Details of the DARWIN Class