pmusezone(3) - Linux man page
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) and pmlocaltime(3).
The argument tz_handle identifies a reporting timezone as previously established by a call to pmnewzone(3) or pmnewcontextzone(3), and this becomes the current reporting timezone.
See Also
pmapi(3), pmctime(3), pmlocaltime(3), pmnewcontextzone(3), pmnewzone(3) and pmwhichzone(3).
Diagnostics
A return value less than zero indicates the value of tz_handle is not legal.