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, [> `Msg of string ]) Stdlib.result

decode data year is Ok (timestamp, leftover), the decoded RFC 3164 timestamp and superfluous bytes, or Error e on parse failure.

OCaml

Innovation. Community. Security.