---
name: "NtSetSystemTime"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/NtSetSystemTime"
---

# NtSetSystemTime(3w)

## NAME

**NtSetSystemTime** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtSetSystemTime\
  (\
   const LARGE\_INTEGER\* *NewTime*,\
   LARGE\_INTEGER\*       *OldTime*\
  )

## DESCRIPTION

Set the system time.

## PARAMS

*NewTime* **\[In\]**  The time to set.

*OldTime* **\[Out\]**  Optional destination for the previous system time.

## RETURNS

**Success:** **STATUS\_SUCCESS**.

**Failure:** An **NTSTATUS** error code indicating the problem.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/time.c"**.

Debug channel **"ntdll"**.
