rm non-NBO Bin.t; rename time modules

This commit is contained in:
swrup 2026-02-24 17:51:30 +01:00 committed by Swrup
parent 7053607c72
commit 104666b7ea
13 changed files with 306 additions and 359 deletions

View file

@ -1,4 +1,4 @@
module Relative : sig
module TimeRelative : sig
type t
val forever : t
@ -12,12 +12,11 @@ module Relative : sig
(* - *)
val bin : t Bin.t
val bin_nbo : t Bin.t
val caqti : t Caqti_type.t
val jsont : t Jsont.t
end
module Absolute : sig
module TimeAbsolute : sig
type t
val never : t
@ -25,9 +24,9 @@ module Absolute : sig
val compare : t -> t -> int
val min : t -> t -> t
val max : t -> t -> t
val diff : t -> t -> Relative.t
val add : t -> Relative.t -> t
val sub : t -> Relative.t -> t
val diff : t -> t -> TimeRelative.t
val add : t -> TimeRelative.t -> t
val sub : t -> TimeRelative.t -> t
val of_s : int64 -> t
val of_ptime : Ptime.t -> t
end
@ -40,18 +39,17 @@ module Timestamp : sig
val compare : t -> t -> int
val min : t -> t -> t
val max : t -> t -> t
val diff : t -> t -> Relative.t
val diff : t -> t -> TimeRelative.t
val of_s : int64 -> t
(* none if t = never *)
val to_s : t -> int64 option
val of_absolute : Absolute.t -> t
val of_absolute : TimeAbsolute.t -> t
val of_ptime : Ptime.t -> t
(* TODO add pp *)
(* - *)
val bin : t Bin.t
val bin_nbo : t Bin.t
val caqti : t Caqti_type.t
val jsont : t Jsont.t
end