vamshivemula
New member
- Joined
- Feb 25, 2010
- Messages
- 3
- Programming Experience
- 1-3
Hi,
My requirement is to pull time from TIME SERVERS through .NET code to avoid time manipulation in my project which needs to record time for users when they start particular task and system clock can be changed to record wrong timings. I need to pull this time in IST.
I was able to get some links but unable to write codeThe links are:
NIST Internet time service
ftp://time-a.nist.gov/pub/daytime/
NIST Internet Time Service clock
Current local time in India
One of the above link has source code of windows utility in C# which I am not familiar with. We can just get the code from the utility that just queries the server and then use the time. We have to make the application to randomly choose a server from a list of servers if you have query lots of times as they deny requests if queried multiple times in a period.
Please help me with sample code.
CROSS POSTING: I have also posted this same question in this VBDOTNETFORUMS in "Windows Forms Discussion related to Winforms application development Thread" too.
My requirement is to pull time from TIME SERVERS through .NET code to avoid time manipulation in my project which needs to record time for users when they start particular task and system clock can be changed to record wrong timings. I need to pull this time in IST.
I was able to get some links but unable to write codeThe links are:
NIST Internet time service
ftp://time-a.nist.gov/pub/daytime/
NIST Internet Time Service clock
Current local time in India
One of the above link has source code of windows utility in C# which I am not familiar with. We can just get the code from the utility that just queries the server and then use the time. We have to make the application to randomly choose a server from a list of servers if you have query lots of times as they deny requests if queried multiple times in a period.
Please help me with sample code.
CROSS POSTING: I have also posted this same question in this VBDOTNETFORUMS in "Windows Forms Discussion related to Winforms application development Thread" too.
Last edited: