PMCONVERTTIME(3)
PMCONVERTTIME(3) π
okay bestie, welcome to the Library Functions Manual corner of the PCP docs β¨ this one's for the devs poking around in the internals, so grab a snack π
β¨ NAME β¨
__pmConvertTime, __pmConvertHighResTime β convert tm structure into seconds π
πΈ C SYNOPSIS πΈ
#include "pmapi.h"
#include "libpcp.h"
int __pmConvertTime(struct tm *tmin, struct timeval *origin,
struct timeval *rslt);
int __pmConvertHighResTime(struct tm *tmin, struct timespec *origin,
struct timespec *rslt);
cc ... -lpcp
π CAVEAT π
This documentation is intended for internal Performance Co-Pilot (PCP) developer use.
These interfaces are not part of the PCP APIs that are guaranteed to remain fixed across releases, and ngl they may not work, or may provide different semantics at some point in the future. π
no cap, if you're building on these, know that they could just... change on you. it's giving "internal only" energy for a reason.
π¦ DESCRIPTION π¦
__pmConvertTime and __pmConvertHighResTime accept a tm structure that has been filled in by __pmParseCtime(3), plus a reference time point called origin, and they fill in the given rslt structure with the time the user actually meant when they specified a partial ctime or a positive or negative time interval. β¨
Typically, the argument origin is the start time for a set of PCP archives β unless the user specified a negative interval offset, in which case it's the end time of the archive. π
__pmConvertTime and __pmConvertHighResTime return 0 if successful. They return -1 and write an error message to stderr, if an error is detected. π
Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3) to establish a new current timezone that will effect __pmConvertTime. π
π SEE ALSO π
PMAPI(3)pmNewContextZone(3)pmNewZone(3)pmParseInterval(3)pmParseTimeWindow(3)pmUseZone(3)__pmParseCtime(3)__pmParseTime(3)
and that's the whole vibe bestie, you ate π«Ά this was Performance Co-Pilot (PCP) doing its internal-docs thing, mwah π go forth and convert those tm structures fr fr π
π¦ where this page comes from
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: libpcp3-dev 6.3.8-1
- ubuntu questing: libpcp3-dev 6.3.8-1
- Copyright (c) 2016 Red Hat
- Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms