package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. date : GapiDate.t;
    (*

    The date, in the format "yyyy-mm-dd", if this is an all-day event.

    *)
  2. dateTime : GapiDate.t;
    (*

    The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.

    *)
  3. timeZone : string;
    (*

    The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.

    *)
}
val date : (t, GapiDate.t) GapiLens.t
val dateTime : (t, GapiDate.t) GapiLens.t
val timeZone : (t, string) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t