package tezos-protocol-010-PtGRANAD

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Tezos_protocol_environment_010_PtGRANAD.Time end
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val add : t -> int64 -> t
val diff : t -> t -> int64
val of_seconds : int64 -> t
val to_seconds : t -> int64
val of_notation : string -> t option
val of_notation_exn : string -> t
val to_notation : t -> string
type time = t
val of_seconds_string : string -> time option
val to_seconds_string : time -> string

( +? ) t p adds a time span p to a timestamp t. This function errors on integer overflow

( -? ) t1 t2 subtracts timestamp t2 from t1. This function errors when the difference is negative

OCaml

Innovation. Community. Security.