package syslog-message

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

RFC 3164 Timestamps

val encode : Ptime.t -> string

encode t is data, a timestamp in the presentation of RFC 3164.

val decode : string -> int -> (Ptime.t * string) option

decode data year is timestamp, leftover, the decoded RFC 3164 timestamp and superfluous bytes, or None on parse failure.