val encode : Ptime.t -> stringencode t is data, a timestamp in the presentation of RFC 3164.
val decode : string -> int -> (Ptime.t * string, [> Rresult.R.msg ]) Stdlib.resultdecode data year is Ok (timestamp, leftover), the decoded RFC 3164 timestamp and superfluous bytes, or Error e on parse failure.