Hi to all,


I am developing an application where i need to login time and save it in database, when ever admin wants to see when ever i need to display all login users and login time in a table widget.

when ever the user logout i need to save the current time and calculate how many hours he logged in.

Can any one tell how to find difference b/w two times( one is in database and one is current time).

i am waiting for your replies and valuable suggestions.


Regards,

Narasimha Raju. Naidu