Mavryk_raw_protocol_alpha.Script_timestampDefines the internal Michelson representation for timestamps and basic operations that can be performed on it.
Representation of timestamps specific to the Michelson interpreter. A number of seconds since the epoch. t is made algebraic in order to distinguish it from the other type parameters of Script_typed_ir.ty.
val of_int64 : int64 -> tConvert a number of seconds since the epoch to a timestamp.
Compare timestamps. Returns 1 if the first timestamp is later than the second one; 0 if they're equal and -1 othwerwise.
val to_notation : t -> string optionConvert a timestamp to RFC3339 notation if possible *
val to_num_str : t -> stringConvert a timestamp to a string representation of the seconds
val to_string : t -> stringConvert to RFC3339 notation if possible, or num if not
val of_string : string -> t optionval diff : t -> t -> Script_int.z Script_int.numReturns difference between timestamps as integral number of seconds in Michelson representation of numbers.
val add_delta : t -> Script_int.z Script_int.num -> tAdd a number of seconds to the timestamp.
val sub_delta : t -> Script_int.z Script_int.num -> tSubtract a number of seconds from the timestamp.
val to_zint : t -> Mavryk_protocol_environment_alpha.Z.tval of_zint : Mavryk_protocol_environment_alpha.Z.t -> tval encoding : t Mavryk_protocol_environment_alpha.Data_encoding.encodingval now : Alpha_context.t -> t