---
name: "do_settimeofday"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/do_settimeofday"
---

# do\_settimeofday(9)

Sets the time of day

## NAME

do\_settimeofday - Sets the time of day

## SYNOPSIS

**int do\_settimeofday(struct timespec \*** *tv***);**

## ARGUMENTS

*tv*

pointer to the timespec variable containing the new time

## DESCRIPTION

Sets the time of day to the new time and update NTP and notify hrtimers

## COPYRIGHT
