|
-
Jun 28th, 2004, 12:37 PM
#1
Thread Starter
Lively Member
Update DateTime
Hello Everybody,
I have created a multithreaded client server application. Whenever the client logs in a time stamp is created and added to the hashtable. Now I wanted to update the time in Seconds and also the hashtable when evenever a new client logs on to the server.
My problem is how do I update the time and also the hashtable simultaneously.
Pls guide..
Rahil
DateTime now= DateTime.Now;
second= (now.Hour*60*60)+(now.Minute*60)+now.Second;
usertimetable.Add(realId,second);
currenttime=(int)usertimetable[realId];
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|