Module Values.TimePeriodSource

Represents a duration of time defined by start and end timestamps.

Sourcetype nonrec t = {
  1. start : Timestamp.t;
    (*

    The start (inclusive) of the time period. ISO-8601 formatted timestamp, for example: YYYY-MM-DDThh:mm:ss.sssZ

    *)
  2. end_ : Timestamp.t;
    (*

    The end (exclusive) of the time period. ISO-8601 formatted timestamp, for example: YYYY-MM-DDThh:mm:ss.sssZ

    *)
}
Sourceval context_ : string
Sourceval make : start:Timestamp.t -> end_:Timestamp.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t