views:

142

answers:

3

I want to get another system's time which is a server where both systems are connected through LAN. Give me some ideas?

+2  A: 

Check this out: An SNTP Client in C#

Or, for the REALLY simple solution, shell out to NET TIME

net time \\computer

And capture the stdout.

John Gietzen
I like the `net time` solution: no extra dependencies.
Luke Quinane
Is there any possibilities of using other system time
ush
A: 

If the server is a windows operating system, you could try to get the time remotely using WMI

Andrew Keith
A: 

A more recent project SNTP time class

mikej