package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. year : int;
  2. month : int;
  3. day : int;
  4. hour : int;
  5. minute : int;
  6. second : int;
  7. nanos : int;
  8. zone : int;
  9. week_day : int;
}
val localzone : int
val localzone_nodst : int
val get_localzone : unit -> int
val create : ?localzone:bool -> ?zone:int -> ?nanos:int -> float -> t
type localization = {
  1. full_day_names : string array;
  2. abbr_day_names : string array;
  3. parsed_day_names : string list array;
  4. full_month_names : string array;
  5. abbr_month_names : string array;
  6. parsed_month_names : string list array;
  7. timezone_names : (string * int * bool) list;
  8. am_particle : string;
  9. pm_particle : string;
  10. d_format : string;
  11. t_format : string;
  12. d_t_format : string;
  13. t_format_ampm : string;
  14. char_encoding : string;
}
type compiled_localization
val posix_l9n : localization
val l9n_from_locale : string -> localization
val compile_l9n : localization -> compiled_localization
val parse : ?localzone:bool -> ?zone:int -> ?l9n:compiled_localization -> string -> t
val since_epoch : t -> float
val since_epoch_timespec : t -> float * int
val since_epoch_approx : t -> float
val week_day : t -> int
val year_day : t -> int
val iso8601_week_pair : t -> int * int
val parse_epoch : ?l9n:compiled_localization -> ?localzone:bool -> ?zone:int -> string -> float
val parse_epoch_timespec : ?l9n:compiled_localization -> ?localzone:bool -> ?zone:int -> string -> float * int
val parse_epoch_approx : ?l9n:compiled_localization -> ?localzone:bool -> ?zone:int -> string -> float
val format_to : ?l9n:compiled_localization -> Netchannels.out_obj_channel -> fmt:string -> t -> unit
val format : ?l9n:compiled_localization -> fmt:string -> t -> string
val mk_date : ?localzone:bool -> ?zone:int -> ?nanos:int -> fmt:string -> float -> string
val mk_mail_date : ?localzone:bool -> ?zone:int -> float -> string
val mk_usenet_date : ?localzone:bool -> ?zone:int -> float -> string
val mk_internet_date : ?localzone:bool -> ?zone:int -> ?digits:int -> float -> string
OCaml

Innovation. Community. Security.