예제 #1
0
 public static extern bool SetLocalTime(ref SYSTEMTIME Time);
예제 #2
0
 public static extern void GetLocalTime(ref SYSTEMTIME Time);
예제 #3
0
 /// <summary>
 /// 静态方法。转换为System.DateTime类型。
 /// </summary>
 /// <param name="time">SYSTEMTIME类型的时间。</param>
 /// <returns></returns>
 public static DateTime ToDateTime(SYSTEMTIME time)
 {
     return(time.ToDateTime());
 }