---
name: "pmUseZone"
section: "3"
platform: "linux"
package: "pcp"
version: "7.2.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pmUseZone"
---

# pmUseZone(3)

re-establish a reporting timezone

## NAME

**pmUseZone** - re-establish a reporting timezone

## C SYNOPSIS

**#include \<pcp/pmapi.h\>**

**int pmUseZone(const int** *tz\_handle***);**

**cc ... -lpcp**

## DESCRIPTION

The current reporting timezone effects the timezone used by [**pmCtime**(3)](/pmCtime/3.md) and [**pmLocaltime**(3)](/pmLocaltime/3.md).

The argument *tz\_handle* identifies a reporting timezone as previously established by a call to [**pmNewZone**(3)](/pmNewZone/3.md) or [**pmNewContextZone**(3)](/pmNewContextZone/3.md), and this becomes the current reporting timezone.

## DIAGNOSTICS

A return value less than zero indicates the value of *tz\_handle* is not legal.

## SEE ALSO

[**PMAPI**(3)](/PMAPI/3.md), [**pmCtime**(3)](/pmCtime/3.md), [**pmLocaltime**(3)](/pmLocaltime/3.md), [**pmNewContextZone**(3)](/pmNewContextZone/3.md), [**pmNewZone**(3)](/pmNewZone/3.md) and [**pmWhichZone**(3)](/pmWhichZone/3.md).
