RT求代码,谢谢。

解决方案 »

  1.   


    调用Win32的API,根据需要选用: public class Win32
     {
      [DllImport("Kernel32.dll")]
      public static extern bool SetSystemTime(ref SystemTime sysTime );
      [DllImport("Kernel32.dll")]
      public static extern bool SetLocalTime(ref SystemTime sysTime);
      [DllImport("Kernel32.dll")]
      public static extern void GetSystemTime(ref SystemTime sysTime);
      [DllImport("Kernel32.dll")]
      public static extern void GetLocalTime(ref SystemTime sysTime);
     }http://blog.csdn.net/iorikyo/archive/2006/10/01/1314892.aspx
      

  2.   

    http://hi.baidu.com/ysdonet/blog/item/88fe5e0250ecbd0a4bfb5133.html
      

  3.   


    难懂,有没有简单的方法?一定要调用API?
      

  4.   

    把你的服务配置成一个UTC时间服务器,然后把你的电脑同步服务器时间就可以了