seconds since the epoch for non-Unix platforms in OCaml

ocaml

Solution

Despite its name, Unix module is also available on Windows and other platforms. You're safe to use `Unix.time()` for platform-independent code.

Problem

Module Unix contains the time function to get the seconds since the Epoch but is there a platform-independent way to get the same value and ensure the code compiles in non-Unix deployments ?

Original source