pmCtime (3) Linux Manual Page
pmCtime – format the date and time for a reporting timezone
C Synopsis
#include <time.h>
#include <pcp/pmapi.h>
char *pmCtime(const time_t *clock, char *buf);
cc … -lpcp
Description
pmCtime is very similar to ctime(3), except the timezone used is the current “reporting timezone” (rather than the default TZ environment variable scheme), and the result is returned into a caller-declared buffer (rather than a private buffer).
Like ctime(3) the time to be converted is passed via clock, and the result in buf is fixed width fields in the format:
Fri Sep 13 00:00:00 1986
