AnsweredAssumed Answered

Calculation of Duration between two DATE_STRUCT of mqx.h file

Question asked by Utsavi Kalpesh Bharuchwala on Aug 8, 2014
Latest reply on Aug 12, 2014 by Utsavi Kalpesh Bharuchwala



I am user of MQX v4.0 and of Code warrior v10.2.


I am wroking on a project in which I need to use date_struct of mqx.h file for fill up the start time /date as well as to fill up End Time/Date on event. Now I required to calculate the duration between this two events time.


For example,


Struct DATE_STRUCT StartEventDateTime;

Struct DATE_STRUCT EndEventDateTime;


now i want this event duration between StartEventDateTime and EndEventDateTime.

Is MQX providing any function to calculate this duration??



I want to know the inbuilt function facility that is gives me duration.

I right now calculating this duration manually from Hour,Minute and Second.


Pls reply...