1PMMKTIME(3) Library Functions Manual PMMKTIME(3)
2
3
4
6 __pmMktime - convert a tm structure to a calendar time
7
9 #include <time.h>
10 #include <pcp/pmapi.h>
11 #include <pcp/impl.h>
12
13 time_t *__pmMktime(struct tm *timeptr)
14
15 cc ... -lpcp
16
18 __pmMktime is very similar to mktime(3), except the timezone used is
19 the current ``reporting timezone'' (rather than the default TZ environ‐
20 ment variable scheme).
21
22 Like mktime(3) the time to be converted is passed via timeptr, and the
23 function result contains the calendar time (the number of seconds since
24 00:00:00 UTC, January 1, 1970).
25
26 The default current reporting timezone is as defined by the TZ environ‐
27 ment variable, so __pmMktime and mktime(3) will initially produce simi‐
28 lar conversions.
29
30 Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3) to establish a
31 new current reporting timezone that will effect __pmMktime but not
32 mktime(3).
33
35 mktime(3), PMAPI(3), pmCtime(3), pmLocaltime(3), pmNewContextZone(3),
36 pmNewZone(3) and pmUseZone(3).
37
38
39
40Performance Co-Pilot SGI PMMKTIME(3)