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