package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.1.tar.bz2
sha256=fea0bbb53746a29fb546946d34d43ed0907db8326ff95004a11f7ea666f8d541
md5=c06eec6b0e12a993d4677203e733512a

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.