package camlpdf

  1. Overview
  2. Docs

Representing and Parsing PDF Dates

type t = {
  1. year : int;
  2. month : int;
  3. day : int;
  4. hour : int;
  5. minute : int;
  6. second : int;
  7. hour_offset : int;
  8. minute_offset : int;
}

The type of a date.

exception BadDate

Raised when date_of_string fails.

val date_of_string : string -> t

Build a date by parsing a PDF date string. Raises BadDate on failure.

val string_of_date : t -> string

Build a string from a date.

OCaml

Innovation. Community. Security.