Time.SystemA representation of timestamps.
NOTE: This representation is limited to times between 0000-01-01 00:00:00 UTC and 9999-12-31 23:59:59.999999999999 UTC
val epoch : tUnix epoch is 1970-01-01 00:00:00.000000000000 UTC
module Span : sig ... endNote that converting system time to protocol time truncates any subsecond precision.
val of_protocol_opt : Protocol.t -> t optionConvert a Protocol time into a System time.
Return None if the Protocol time is outside the RFC3339 range.
val of_protocol_exn : Protocol.t -> tConvert a Protocol time into a System time.
Raises Invalid_argument if the Protocol time is outside the RFC3339 range.
val to_protocol : t -> Protocol.tConvert a System time into a Protocol time.
Note that subseconds are truncated.
val of_notation_opt : string -> t optionConvert a string in the RFC3339 format (e.g., "1970-01-01T00:00:00.000-00:00") into a system time. Invalid RFC3339 notations will return None.
Note that years outside the 0000-9999 range are invalid RFC3339-wise.
val of_notation_exn : string -> tConvert a string in the RFC3339 format (e.g., "1970-01-01T00:00:00.000-00:00") into a system time. Invalid RFC3339 notations will raise Invalid_argument.
Note that years outside the 0000-9999 range are invalid RFC3339-wise.
val to_notation : t -> stringConvert a system time into an RFC3339 notation (e.g., "1970-01-01T00:00:00.000-00:00").
val encoding : t Data_encoding.tval rfc_encoding : t Data_encoding.tval rpc_arg : t Mavryk_rpc.Arg.tval pp_hum : Stdlib.Format.formatter -> t -> unitData with an associated time stamp.
val stamped_encoding : 'a Data_encoding.t -> 'a stamped Data_encoding.tval pp_stamped :
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
'a stamped ->
unitrecent a b is either a or b (which ever carries the most recent timestamp), or None if both a and b are None.
val hash : t -> intinclude Mavryk_stdlib.Compare.S with type t := tmodule Set : Mavryk_error_monad.TzLwtreslib.Set.S with type elt = tmodule Map : Mavryk_error_monad.TzLwtreslib.Map.S with type key = tmodule Table : Mavryk_error_monad.TzLwtreslib.Hashtbl.S with type key = t