---
name: "cdist-type__hwclock"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__hwclock"
---

# cdist-type\_\_hwclock(7)

Manage the hardware real time clock.

## NAME

cdist-type\_\_hwclock - Manage the hardware real time clock.

## DESCRIPTION

This type can be used to control how the hardware clock is used by the operating system.

## REQUIRED PARAMETERS

- **mode**

  What mode the hardware clock is in.

  Acceptable values:

  - **localtime**

    The hardware clock is set to local time (common for systems also running Windows.)

  - **UTC**

    The hardware clock is set to UTC (common on UNIX systems.)

## OPTIONAL PARAMETERS

None.

## BOOLEAN PARAMETERS

None.

## EXAMPLES

```
# Make the operating system treat the time read from the hwclock as UTC.
__hwclock --mode UTC
```

## SEE ALSO

[**hwclock**(8)](/hwclock/8.md)

## AUTHORS

Dennis Camera \<*dennis.camera@ssrq-sds-fds.ch*\>

## COPYING

Copyright (C) 2020 Dennis Camera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
