Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmusezone(3) [centos man page]

PMUSEZONE(3)						     Library Functions Manual						      PMUSEZONE(3)

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. Performance Co-Pilot PCP PMUSEZONE(3)

Check Out this Related Man Page

PMCTIME(3)						     Library Functions Manual							PMCTIME(3)

NAME
pmCtime - format the date and time for a reporting timezone C SYNOPSIS
#include <time.h> #include <pcp/pmapi.h> char *pmCtime(const time_t *clock, char *buf); cc ... -lpcp DESCRIPTION
pmCtime is very similar to ctime(3), except the timezone used is the current ``reporting timezone'' (rather than the default TZ environment variable scheme), and the result is returned into a caller-declared buffer (rather than a private buffer). Like ctime(3) the time to be converted is passed via clock, and the result in buf is fixed width fields in the format: Fri Sep 13 00:00:00 1986 The result buffer buf must be at least 26 bytes long, and no attempt is made to check this. pmCtime returns buf as the value of the func- tion. The default current reporting timezone is as defined by the TZ environment variable, so pmCtime and ctime(3) will initially produce similar encoding of the date and time. Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3) to establish a new current reporting timezone that will effect pmCtime but not ctime(3). SEE ALSO
ctime(3), PMAPI(3), pmLocaltime(3), pmNewContextZone(3), pmNewZone(3) and pmUseZone(3). Performance Co-Pilot PCP PMCTIME(3)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Timezone

Hello again, under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am. i dont know who reads this file to set after reading the timezone under /usr/lib/tztab. my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies

2. UNIX for Dummies Questions & Answers

Timezone

Hi, I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer. Now it's set on WET and I want to set the timezone to CET (GMT +1) Plz somebody help me. Regards Novisern:confused: (5 Replies)
Discussion started by: Novisern
5 Replies

3. Programming

Finding timezone information

how to extract current/existing timezone information ?? (2 Replies)
Discussion started by: kartik.patel
2 Replies

4. Solaris

2007 timezone patches...

could sun make this more complex? http://sunsolve.sun.com/search/document.do?assetkey=1-26-102775-1 I think I need a 2nd cup to identify what patches I need to address the 2007 timezone changes... manny (2 Replies)
Discussion started by: mr_manny
2 Replies

5. Solaris

SunOS 5.6: timezone data patch

Does anyone know if there is a patch for SunOS 5.6 timezone update for new daylight savings times. I have looked and have updated my 5.8 machine. Can not find one for 5.6. I still use one box for a certian piece of hardware that can not use the newer versions. (6 Replies)
Discussion started by: vacomman
6 Replies

6. AIX

Timezone Setting

Hi On several AIX 5.3 LPARs the timezone is currrently set to: TZ=NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00 Daylight savings in NZ starts on Sun 28th Sep 2008, which is the fourth Sunday. Do I need to change my TZ variable to NZST-12NZDT,M9.4.0/02:00,M4.1.0/03:00 or will AIX interpret the fifth... (2 Replies)
Discussion started by: KiwiP
2 Replies

7. Shell Programming and Scripting

Timezone not changed.

Hi All, While installing Red Hat Linux, I tried changing the timezone to Japan for testing.But the timezone was not set to Japan. I tried other timezones , but they didn't work as well. I am guessing the problem might be due to some missing rpm.Does anyone has any idea or faced a similar... (1 Reply)
Discussion started by: nua7
1 Replies

8. Shell Programming and Scripting

Convert timezone

Hi, I have date with my server's timezone. I want to convert it with another timezone either EST or GMT, found Date:Manip module but cant find exact use, can anyone help... (4 Replies)
Discussion started by: darshakraut
4 Replies

9. Shell Programming and Scripting

convert timezone into human output

Hi I have a command which returns a timezone, Ej: root@bsades2: /usr/local/bin # lsuser -a time_last_login israel israel time_last_login=1279032223 Question: I want to parse this timezone '1279032223' into a 'martes, 13 de julio de 2010 16:43:43' from the ksh shell. Is itt possible? ... (3 Replies)
Discussion started by: iga3725
3 Replies

10. Red Hat

Cronjob not working at user timezone

I have created user and set timezone different from root user timezone in .bash_profile of user using TZ command, i have created cronjob for user using crontab -e, my concern is that job schedule in cronjob must executive as per timezone of user , but i am getting that job schedule in cron of user... (6 Replies)
Discussion started by: Mahenaaz
6 Replies

11. Solaris

Changing the timezone to GMT+1

Hello everyone, Can you please help me with this problem? I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps: 1- Edit the /etc/TIMEZONE file 2- restart the system : init 6 My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Discussion started by: adilyos
5 Replies

12. Solaris

Solaris 11 global zone timezone

Am new on Solaris If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too . What we follow and best practice in Solaris Sparc servers . Thanks in advance . (2 Replies)
Discussion started by: Shirishlnx
2 Replies