---
name: "pmusezone"
section: "3"
platform: "linux"
package: "libpcp3-dev"
version: "4.3.2+really4.3.1-0.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pmUseZone"
---

# pmusezone(3)

re-establish a reporting timezone

Part of [pmUseZone(3)](/pmUseZone/3.md).

## 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.

## 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).

## DIAGNOSTICS

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