package syslog-message

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

Module Syslog_message.Rfc3164_TimestampSource

RFC 3164 Timestamps

Sourceval encode : Ptime.t -> string

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

Sourceval decode : string -> int -> (Ptime.t * string, [> `Msg of string ]) 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.