replace strptime() (_XOPEN_SOURCE) with ptime()

closes gh-4