python api: interface tm class to struct_time for strftime
commitfffaabf5c231be48c132737ec42fbe88c5c7ad66
authorNathan Scott <nathans@redhat.com>
Tue, 2 Aug 2016 06:02:08 +0000 (2 16:02 +1000)
committerNathan Scott <nathans@redhat.com>
Tue, 2 Aug 2016 06:02:08 +0000 (2 16:02 +1000)
tree90a2ae57054dd3f2bde71167e473a8811af1e334
parent98476e880570511cb1fb1c2e8652140e8be199f2
python api: interface tm class to struct_time for strftime

The date reporting in the header lines of pcp-mpstat and
pcp-pidstat would like to use strftime to match behaviour
of the original tools, so allow converting between our tm
class and the python time module struct_time.

Adds to qa/737 to exercise use of the python time strftime.
qa/737.out
qa/src/test_pcp_time.python
src/python/pcp/pmapi.py