---
name: "pmisettimezone"
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/pmiSetTimezone"
---

# pmisettimezone(3)

set the source timezone for a LOGIMPORT archive

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

## NAME

**pmiSetTimezone** - set the source timezone for a LOGIMPORT archive

## C SYNOPSIS

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

**int pmiSetTimezone(const char \****value***);**

**cc ... -lpcp\_import -lpcp**

## Perl SYNOPSIS

**use PCP::LogImport;**

**pmiSetTimezone($***value***);**

## DESCRIPTION

As part of the Performance Co-Pilot Log Import API (see [**LOGIMPORT**(3)](/LOGIMPORT/3.md)), **pmiSetTimezone** sets the source timezone in the current context to be *value*.

In the absence of a call to **pmiSetTimezone** the source timezone defaults to the timezone of the localhost.

## DIAGNOSTICS

**pmiSetTimezone** returns zero on success else a negative value that can be turned into an error message by calling [**pmiErrStr**(3)](/pmiErrStr/3.md).

## SEE ALSO

[**LOGIMPORT**(3)](/LOGIMPORT/3.md), [**pmiErrStr**(3)](/pmiErrStr/3.md), [**pmiSetHostname**(3)](/pmiSetHostname/3.md) and [**pmiStart**(3)](/pmiStart/3.md).
