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

# SetLocalTime(3w)

## NAME

**SetLocalTime** (KERNEL32.@)

## SYNOPSIS

BOOL SetLocalTime\
  (\
   const SYSTEMTIME\* *systime*\
  )

## DESCRIPTION

Set the local time using current time zone and daylight savings settings.

## PARAMS

*systime* **\[In\]**  The desired local time.

## RETURNS

**Success:** **TRUE**. The time was set.

**Failure:** **FALSE**, if the time was invalid or caller does not have permission to change the time.

## IMPLEMENTATION

Declared in **"winbase.h"**.

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

Debug channel **"time"**.
