SetSystemTime

[DllImport("coredll.dll", SetLastError = true)]
public static extern bool SetSystemTime(
   ref SYSTEMTIME lpSystemTime
);

Microsoft documentation: Link

Last updated