How can i compare two date???

Login to reply to this topic.
Mon, 2005-05-09 16:18
Joined: 2005-03-08
Forum posts: 20
i want to make an app that the app begin works on the defined date..
for ex now is 9 may and the user enter 30 may, on the 30 th may the app must work...

But i dont want count seconds for timeout..

i made an exe and everyday when the user opens his phone the exe works in underground and takes the date..Then compare two dates ,the user input and now's date, if it is same begiin working else close the exe server...

how can i do that? only comparing the date i mean...

Mon, 2005-05-09 17:50
Joined: 2004-02-05
Forum posts: 176
How can i compare two date???
The TTime class in the Symbian SDK should give you all you need to get the current time and compare it to another TTime object.

Get the current time by using these functions
TTime::HomeTime() or TTime::UniversalTime()

Compare two TTime objects by using
TBool TTime::operator==(TTime aTime)

  • Login to reply to this topic.