package plato

  1. Overview
  2. Docs
type t = datetime
val make : int -> int -> int -> ?hour:int -> ?minute:int -> ?second:int -> ?microsecond:int -> ?tzinfo:tzinfo -> ?fold:int -> unit -> t
val hour : t -> int
val minute : t -> int
val second : t -> int
val microsecond : t -> int
val tzinfo : t -> tzinfo option
val fold : t -> int
val utcoffset : t -> Timedelta.t option
val toordinal : t -> int
val sub : t -> t -> Timedelta.t
val replace : ?year:int -> ?month:int -> ?day:int -> ?hour:int -> ?minute:int -> ?second:int -> ?microsecond:int -> ?tzinfo:tzinfo -> ?fold:int -> t -> t
val cmp : ?allow_mixed:bool -> t -> t -> int
val compare : t -> t -> int
val eq : t -> t -> bool
val le : t -> t -> bool
val lt : t -> t -> bool
val ge : t -> t -> bool
val gt : t -> t -> bool
val fromtimestamp : ?tz:tzinfo -> float -> t
val utcfromtimestamp : float -> t
val now : ?tz:tzinfo -> unit -> t
val utcnow : unit -> t
val combine : ?tzinfo:tzinfo -> Date.t -> Time.t -> t
val add : t -> Timedelta.t -> t
val make_timezone : ?name:string -> Timedelta.t -> tzinfo
val utc_timezone : tzinfo
val parse_isoformat_time : string -> int * int * int * int * tzinfo option
val fromisoformat : string -> t
val dst : t -> Timedelta.t option
val timetuple : t -> Time_.struct_time
val mktime : t -> int
val _EPOCH : t
val timestamp : t -> float
val utctimetuple : t -> Time_.struct_time
val date : t -> Date.t
val time : t -> Time.t
val timetz : t -> Time.t
val ctime : t -> string
val isoformat : ?sep:char -> ?timespec:string -> t -> string
val repr : t -> string
val to_string : t -> string
val tzname : t -> string option
val hash : t -> int
val min : t
val max : t
val resolution : Timedelta.t
OCaml

Innovation. Community. Security.