package stog

  1. Overview
  2. Docs
type t
val of_string : ?loc:Xtmpl.Xml.loc -> string -> t
val of_string_date : ?loc:Xtmpl.Xml.loc -> string -> t
val to_string : t -> string
val now : unit -> t
val of_float : float -> t
val to_date_time : t -> Ptime.date * Ptime.time
val weekday : t -> [ `Fri | `Mon | `Sat | `Sun | `Thu | `Tue | `Wed ]

Return week day from 0 (sunday) to 6 (saturday).

val format : t -> string -> string
OCaml

Innovation. Community. Security.