Tezos_raw_protocol_024_PtTALLiN.Period_reprtype period = tRepresents a period of time as a non-negative integer.
val encoding : period Tezos_protocol_environment_024_PtTALLiN.Data_encoding.tval rpc_arg : period Tezos_protocol_environment_024_PtTALLiN.RPC_arg.tval pp :
Tezos_protocol_environment_024_PtTALLiN.Format.formatter ->
period ->
unitval to_seconds : period -> int64Returns the number of seconds contained in the period.
val of_seconds :
int64 ->
period Tezos_protocol_environment_024_PtTALLiN.Error_monad.tzresultConverts a number of seconds to a period.
of_second s fails if s is not positive.
val of_seconds_exn : int64 -> periodConverts a number of seconds to period.
of_second s fails if s is not positive. It should only be used at toplevel for constants.
Safe addition of periods, guarded against overflow.
val (+?) :
period ->
period ->
period Tezos_protocol_environment_024_PtTALLiN.Error_monad.tzresultAlias for add.
val mult :
int32 ->
period ->
period Tezos_protocol_environment_024_PtTALLiN.Error_monad.tzresultSafe multiplication by a positive integer. Guarded against overflow.
val zero : periodval one_second : periodval one_minute : periodval one_hour : periodval one_day : period