Owner manual

2-27
IM MX190-01E
MX100 -Visual C++
2
CDAQDateTime::setTime
Syntax
virtual void setTime(time_t time);
Parameters
time Specify seconds.
Description
Stores the specified value in the seconds field of the data member.
CDAQDateTime::toLocalDateTime
Syntax
void toLocalDateTime(int * pYear, int * pMonth, int * pDay,
int * pHour, int * pMinute, int * pSecond);
static void toLocalDateTime(time_t sectime, int * pYear, int *
pMonth, int * pDay, int * pHour, int * pMinute, int *
pSecond);
Parameters
sectime Specify seconds.
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 specified number of seconds to years, months, days, hours, minutes,
and seconds according to the local time zone.
The specified number is the number of seconds from Jan. 1, 1970. Seconds are
obtained from the data member for parameters with no seconds specified.
A four digit value is returned in 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 minutes.
A value between 0 and 59 is returned for the seconds.
Returns 0 if conversion fails.
Reference
getTime
2.4 Details of the MX100/DARWIN Common Class