package camlimages

  1. Overview
  2. Docs
type t = {
  1. year : int;
  2. month : int;
  3. day : int;
  4. hour : int;
  5. min : int;
  6. sec : int;
}
val to_string : t -> string
val of_string : string -> [> `Error of string | `Ok of t ]
val of_string_packed_unix_time : string -> [> `Error of string | `Ok of t ]

I had an old Android phone which created DateTime tag with a little endian encoded unsigned int32 of unix time, which seems not following the spec of EXIF.

This function tries to fix the issue.

OCaml

Innovation. Community. Security.