I have created a Setting List in my application following the link
I have a Time editor in the Setting List.
Once the time is set in the setting list,my app performs a comparison between the set time and current time.
Say the time set was 3.52 PM
The comparison is done as follows:-
The output is as follows:-
settingTime = iSleepSettingsData->SettingTime();
HBufC* timeFormatString = NULL;
timeFormatString = CEikonEnv::Static()->
RDebug::Print(_L("Current time is %d hours ahead from set time ////////////////////////////"),minDiff.Int());
RDebug::Printf("The comparison succeeded");
RDebug::Printf("The comparison failed");
Current time is 17619842 hours ahead from set time ////////////////////////////
The comparison failed
Kindly someone please tell me why it gives such an absurd number of hours when the difference is just 2.
Should i convert the TTime received from the setting list to some other format.What is being done wrong...