sig
  type t =
      Nanoseconds
    | Microseconds
    | Milliseconds
    | Seconds
    | Minutes
    | Hours
    | Days
  external convert : TimeUnit.t -> TimeUnit.t -> int64 -> int64
    = "ocamljava_timeunit_convert"
end