1PMCONVERTTIME(3)           Library Functions Manual           PMCONVERTTIME(3)
2
3
4

NAME

6       __pmConvertTime,  __pmConvertHighResTime  -  convert  tm structure into
7       seconds
8

C SYNOPSIS

10       #include "pmapi.h"
11       #include "libpcp.h"
12
13       int __pmConvertTime(struct tm *tmin, struct timeval *origin,
14               struct timeval *rslt);
15       int __pmConvertHighResTime(struct tm *tmin, struct timespec *origin,
16               struct timespec *rslt);
17
18       cc ... -lpcp
19

CAVEAT

21       This documentation is intended for internal Performance Co-Pilot  (PCP)
22       developer use.
23
24       These  interfaces  are  not part of the PCP APIs that are guaranteed to
25       remain fixed across releases, and they may not  work,  or  may  provide
26       different semantics at some point in the future.
27

DESCRIPTION

29       __pmConvertTime  and  __pmConvertHighResTime accept a tm structure that
30       has been filled in by __pmParseCtime(3) and a reference time point ori‐
31       gin, and fills in the given rslt structure with the time the user meant
32       when specifying a partial ctime or positive or negative time interval.
33
34       Typically, the argument origin is the start time for a set of  PCP  ar‐
35       chive  logs,  unless  the user specified a negative interval offset, in
36       which case it is the end time of the log.
37
38       __pmConvertTime and  __pmConvertHighResTime  return  0  if  successful.
39       They return -1 and write an error message to stderr, if an error is de‐
40       tected.
41
42       Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3)  to  establish  a
43       new current timezone that will effect __pmConvertTime.
44

SEE ALSO

46       PMAPI(3),  pmNewContextZone(3),  pmNewZone(3),  pmParseInterval(3), pm‐
47       ParseTimeWindow(3),  pmUseZone(3),  __pmParseCtime(3)  and   __pmParse‐
48       Time(3).
49
50
51
52Performance Co-Pilot                  PCP                     PMCONVERTTIME(3)
Impressum