File: pdfdate.mli

package info (click to toggle)
camlpdf 0.5-1
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze, wheezy
  • size: 1,516 kB
  • ctags: 2,689
  • sloc: ml: 18,229; ansic: 139; makefile: 139
file content (25 lines) | stat: -rw-r--r-- 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(** Representing and Parsing PDF Dates *)

(** The type of a date. *)
type t =
  {year : int;
   month : int;
   day : int;
   hour : int;
   minute : int;
   second : int;
   hour_offset : int;
   minute_offset : int}

(** Raised when date_of_string fails *)
exception BadDate

(** Build a date by parsing a PDF date string. Raises BadDate on failure. *)
val date_of_string : string -> t

(** Build a string from a date *)
val string_of_date : t -> string

(**/**)
val test : unit -> unit