package tezos-protocol-011-PtHangz2
include module type of struct include Tezos_protocol_environment_011_PtHangz2.Time end
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
val encoding : t Tezos_protocol_environment_011_PtHangz2.Data_encoding.t
val rfc_encoding : t Tezos_protocol_environment_011_PtHangz2.Data_encoding.t
val pp_hum :
Tezos_protocol_environment_011_PtHangz2.Format.formatter ->
t ->
unit
type time = t
Internal timestamp representation.
val pp : Tezos_protocol_environment_011_PtHangz2.Format.formatter -> t -> unit
Pretty-prints the time stamp using RFC3339 format.
val of_seconds_string : string -> time option
Parses RFC3339 representation and returns a timestamp.
val to_seconds_string : time -> string
Returns the timestamp encoded in RFC3339 format.
val (+?) :
time ->
Period_repr.t ->
time Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresult
Adds a time span to a timestamp. This function fails on integer overflow
val (-?) :
time ->
time ->
Period_repr.t Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresult
Returns the difference between two timestamps as a time span. This function fails when the difference is negative
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>