Seconds Since Era for Non-Unix Platforms in OCaml

The Unix module contains a time function to get the seconds since Epoch, but is there a platform independent way to get the same value and make the code compile in non-Unix deployments?

+3


source to share


1 answer


Despite its name, the Unix module is also available on Windows and other platforms . You can use Unix.time()

for platform independent code.



+8


source







All Articles