package mirage-ptime

  1. Overview
  2. Docs
Libraries and module types for portable clocks

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mirage-ptime-5.1.0.tbz
sha256=e9b3db31365e1a895130c3789e6adcf996771ea8e7016b63e15ecbe1f38a29f6
sha512=276a61bfcf7a025a3a6269b52f85ed158f9600385e1c2c2cf21d74985924bb013e703b804e7b15b7249708ef0cdee3c7c0da3cdf20b858a2b1d0da65829ed113

doc/src/mirage-ptime.set/mirage_ptime_set.ml.html

Source file mirage_ptime_set.ml

1
2
3
4
5
6
let now = ref (0, 0L)
let tz_off : int option ref = ref None
let period : (int * int64) option ref = ref None
let set (days, picos) = now := (days, picos)
let set_tz_offset v = tz_off := v
let set_period p = period := p
OCaml

Innovation. Community. Security.