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 "pmapi.h"
11 #include "libpcp.h"
12
13 time_t __pmMktime(struct tm *timeptr);
14
15 cc ... -lpcp
16
18 This documentation is intended for internal Performance Co-Pilot (PCP)
19 developer use.
20
21 These interfaces are not part of the PCP APIs that are guaranteed to
22 remain fixed across releases, and they may not work, or may provide
23 different semantics at some point in the future.
24
26 __pmMktime is very similar to mktime(3), except the timezone used is
27 the current ``reporting timezone'' (rather than the default TZ environ‐
28 ment variable scheme).
29
30 Like mktime(3) the time to be converted is passed via timeptr, and the
31 function result contains the calendar time (the number of seconds since
32 00:00:00 UTC, January 1, 1970).
33
34 The default current reporting timezone is as defined by the TZ environ‐
35 ment variable, so __pmMktime and mktime(3) will initially produce simi‐
36 lar conversions.
37
38 Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3) to establish a
39 new current reporting timezone that will effect __pmMktime but not
40 mktime(3).
41
43 mktime(3), PMAPI(3), pmCtime(3), pmLocaltime(3), pmNewContextZone(3),
44 pmNewZone(3) and pmUseZone(3).
45
46
47
48Performance Co-Pilot PCP PMMKTIME(3)