__pmParseCtime reverses the asctime(3) function. It accepts a string
specifying a time, and fills in the given tm structure.
Either a fully specified asctime(3) string like "Mon Mar 4 13:07:47
1996" or a partially specified time like '1996", "Mar 1996", "Mar 4
1996", "Mar", "13:07:47", "13:07", "Mar 4 13:07:47",... is accepted.
In addition, the seconds component may be a floating point number,
for example "13:07:47.5". The 12 hour clock is also supported, so
"13:07" and "1:07 pm" are equivalent.
__pmParseCtime returns 0 if successful. It returns -1 and a
dynamically allocated error message string in errmsg, if the given
string does not parse. Be sure to free(3) the error message string.
The tm structure returned in rslt should only be used as an argument
to the __pmConvertTime function, as it contains encoded information
that will only be correctly interpreted by __pmConvertTime.
This page is part of the PCP (Performance Co-Pilot) project.
Information about the project can be found at ⟨http://www.pcp.io/⟩.
If you have a bug report for this manual page, send it to
firstname.lastname@example.org. This page was obtained from the project's upstream
Git repository ⟨git://git.pcp.io/pcp⟩ on 2017-03-13. If you discover
any rendering problems in this HTML version of the page, or you
believe there is a better or more up-to-date source for the page, or
you have corrections or improvements to the information in this
COLOPHON (which is not part of the original manual page), send a mail
Performance Co-Pilot PCP PMPARSECTIME(3)