package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.0.tar.gz
sha256=7e46c7774f2f12b42feefdec8b0f43add2523d24432e1b333160d63330ab4dd2
md5=521b7dbafd64afcca31dd3a908a5db31

doc/camlimages.exif/Exif/DateTime/index.html

Module Exif.DateTime

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.