Module V1.Timestamp

Represents all styles of timestamps possibly returned by various gemini endpoints.

module T0 : sig ... end
module T : sig ... end
module Ms : sig ... end
module Sec : sig ... end
include module type of struct include T end
include module type of struct include T0 end
type t = Time_float_unix.t

A timestamp is just a core time instance that was converted from some raw json date.

val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val equal : t -> t -> bool
val compare : t -> t -> int
val to_string : Time_float_unix.t -> Core__.Import.string
val to_yojson : Time_float_unix.t -> [> `String of Core__.Import.string ]
val of_yojson_with_span : (Core.Float.t -> Core.Time_float.Span.t) -> [< `Assoc of (string * Yojson.Safe.t) list | `Bool of bool | `Float of float | `Int of int | `Int64 of int64 | `Intlit of string | `List of Yojson.Safe.t list | `Null | `String of string | `Tuple of Yojson.Safe.t list | `Variant of string * Yojson.Safe.t option ] -> (Time_float_unix.t, string) Base.Result.t
val of_yojson : Yojson.Safe.t -> (Time_float_unix.t, string) Base.Result.t
val of_string : string -> Time_float_unix.t
include Csvfields.Csv.Csvable with type t := t
val is_csv_atom : bool
val rev_csv_header' : string list -> 'a -> 'b -> string list
val rev_csv_header_spec' : Csvfields__Csv.Spec.t list -> 'a -> 'b -> Csvfields__Csv.Spec.t list
val t_of_row' : 'a -> string list -> (unit -> t) * string list
val write_row_of_t' : is_first:bool -> is_last:bool -> writer:(string -> unit) -> 'a -> 'b -> t -> unit
val csv_header : string list
val csv_header_spec : Csvfields__Csv.Spec.t list
val t_of_row : string list -> t
val row_of_t : t -> string list
val csv_load : ?separator:char -> string -> t list
val csv_load_in : ?separator:char -> Core.In_channel.t -> t list
val csv_save_fn : ?separator:char -> (string -> unit) -> t list -> unit
val csv_save_out : ?separator:char -> Core.Out_channel.t -> t list -> unit
val csv_save : ?separator:char -> string -> t list -> unit