public static DateTime GetLocalTime() { win32.SYSTEMTIME st = new win32.SYSTEMTIME(); win32.GetLocalTime(ref st); return(st.ToDateTime()); }
public static void SetLocalTime(DateTime dt) { win32.SYSTEMTIME st = new win32.SYSTEMTIME(); st.FromDateTime(dt); win32.SetLocalTime(ref st); }