package archetype

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Archetype.CoreSource

Sourcetype from_input =
  1. | FIChannel of string * in_channel
  2. | FIString of string
Sourcemodule Format : sig ... end
Sourcetype big_int = Big_int.big_int
Sourceval pp_big_int : Format.formatter -> Big_int.big_int -> unit
Sourceval big_int_of_yojson : Yojson.Safe.t -> (big_int, string) Result.result
Sourceval big_int_to_yojson : big_int -> Yojson.Safe.t
Sourceval compute_irr_fract : (Big_int.big_int * Big_int.big_int) -> Big_int.big_int * Big_int.big_int
Sourceval decimal_string_to_rational : string -> big_int * big_int
Sourcetype duration = {
  1. weeks : big_int;
  2. days : big_int;
  3. hours : big_int;
  4. minutes : big_int;
  5. seconds : big_int;
}
Sourceval mk_duration : ?weeks:big_int -> ?days:big_int -> ?hours:big_int -> ?minutes:big_int -> ?seconds:big_int -> unit -> duration
Sourceval string_to_duration : string -> duration
Sourceval cmp_duration : duration -> duration -> bool
Sourceval pp_duration_for_printer : Format.formatter -> duration -> unit
Sourceval duration_to_timestamp : duration -> big_int
Sourceval pp_duration_in_seconds : Format.formatter -> duration -> unit
Sourcetype timezone =
  1. | TZnone
  2. | TZZ
  3. | TZplus of int * int
  4. | TZminus of int * int
Sourcetype date = {
  1. year : int;
  2. month : int;
  3. day : int;
  4. hour : int;
  5. minute : int;
  6. second : int;
  7. timezone : timezone;
}
Sourceval mk_date : ?year:int -> ?month:int -> ?day:int -> ?hour:int -> ?minute:int -> ?second:int -> ?timezone:timezone -> unit -> date
Sourceval pp_date : Format.formatter -> date -> unit
Sourceval cmp_timezone : timezone -> timezone -> bool
Sourceval cmp_date : date -> date -> bool
Sourceexception MalformedDate of string
Sourceval string_to_date : string -> date

inspired from https://discuss.ocaml.org/t/how-to-expose-date-time-types-in-a-library-nicely/1653/6

Sourceval is_leapyear : int -> bool

is_leapyear is true, if and only if a year is a leap year

Sourceval (**) : int -> Big_int.big_int -> Big_int.big_int
Sourceval sec : Big_int.big_int
Sourceval sec_per_min : Big_int.big_int
Sourceval sec_per_hour : Big_int.big_int
Sourceval sec_per_day : Big_int.big_int
Sourceval days_since_epoch : int -> int -> int -> int
Sourceval seconds_since_epoch : date -> Big_int.big_int
Sourceval epoch : Big_int.big_int
Sourceval date_to_timestamp : date -> big_int
Sourcetype tzkind =
  1. | Ktz
  2. | Kmtz
  3. | Kutz
Sourceval string_to_big_int_tz : tzkind -> string -> Big_int.big_int
Sourceval string_to_big_int_percent : string -> Big_int.big_int * Big_int.big_int
Sourceval is_valid_string : string -> bool
Sourceval is_valid_path : string -> bool
OCaml

Innovation. Community. Security.