package zipc

  1. Overview
  2. Docs

POSIX time.

POSIX time

type t = int

The type for POSIX times in seconds since the Unix epoch.

val dos_epoch : t

dos_epoch is 1980-01-01 00:00:00 UTC. This is the earliest modification time representable in ZIP archives.

val to_date_time : t -> (int * int * int) * (int * int * int)

to_date_time t is the (y, m, d), (hh, mm, ss) representation of t in UTC.

val pp : Format.formatter -> t -> unit

pp formats POSIX times according to RFC 3339 but without the T date and time separator.

OCaml

Innovation. Community. Security.