PMNEWZONE(3) Library Functions Manual PMNEWZONE(3)NAME
pmNewZone - establish a reporting timezone
C SYNOPSIS
#include <pcp/pmapi.h>
int pmNewZone(const char *tz);
cc ... -lpcp
DESCRIPTION
The current reporting timezone affects the timezone used by pmCtime(3) and pmLocaltime(3).
The argument tz defines a timezone string, in the format described for the TZ environment variable, see environ(5).
pmNewZone sets the current reporting timezone, and returns a value that may be used in a subsequent call to pmUseZone(3) to restore this
reporting timezone.
SEE ALSO PMAPI(3), pmCtime(3), pmGetConfig(3), pmLocaltime(3), pmNewContextZone(3), pmUseZone(3), pmWhichZone(3), pcp.conf(5), pcp.env(5) and envi-
ron(5).
DIAGNOSTICS
A return value less than zero indicates a fatal error from a system call, most likely malloc(3C).
Performance Co-Pilot PCP PMNEWZONE(3)
Check Out this Related Man Page
PMMKTIME(3) Library Functions Manual PMMKTIME(3)NAME
__pmMktime - convert a tm structure to a calendar time
C SYNOPSIS
#include <time.h>
#include <pcp/pmapi.h>
#include <pcp/impl.h>
time_t *__pmMktime(struct tm *timeptr);
cc ... -lpcp
DESCRIPTION
__pmMktime is very similar to mktime(3), except the timezone used is the current ``reporting timezone'' (rather than the default TZ envi-
ronment variable scheme).
Like mktime(3) the time to be converted is passed via timeptr, and the function result contains the calendar time (the number of seconds
since 00:00:00 UTC, January 1, 1970).
The default current reporting timezone is as defined by the TZ environment variable, so __pmMktime and mktime(3) will initially produce
similar conversions.
Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3) to establish a new current reporting timezone that will effect __pmMktime but not
mktime(3).
SEE ALSO mktime(3), PMAPI(3), pmCtime(3), pmLocaltime(3), pmNewContextZone(3), pmNewZone(3) and pmUseZone(3).
Performance Co-Pilot PCP PMMKTIME(3)
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)
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)
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)
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)
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)
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)
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)
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)
Hi,
I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada.
Please suggest.
Regards,
Manoj (1 Reply)
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)
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)
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)
Hi Everyone,
Does anyone know if can access
/etc/environment from SNAP file
to check the time zone from the snap file
Objective:
The timezone on the server was changed by someone to another timezone, so I want to check what is the old timezone was ?
I have an old SNAP file.
Does... (4 Replies)