sig
type t = {
year : int;
month : int;
day : int;
hour : int;
minute : int;
second : int;
nanos : int;
zone : int;
week_day : int;
}
val localzone : int
val localzone_nodst : int
val get_localzone : unit -> int
val create :
?localzone:bool -> ?zone:int -> ?nanos:int -> float -> Netdate.t
type localization = {
full_day_names : string array;
abbr_day_names : string array;
parsed_day_names : string list array;
full_month_names : string array;
abbr_month_names : string array;
parsed_month_names : string list array;
timezone_names : (string * int * bool) list;
am_particle : string;
pm_particle : string;
d_format : string;
t_format : string;
d_t_format : string;
t_format_ampm : string;
char_encoding : string;
}
type compiled_localization
val posix_l9n : Netdate.localization
val l9n_from_locale : string -> Netdate.localization
val compile_l9n : Netdate.localization -> Netdate.compiled_localization
val parse :
?localzone:bool ->
?zone:int -> ?l9n:Netdate.compiled_localization -> string -> Netdate.t
val since_epoch : Netdate.t -> float
val since_epoch_timespec : Netdate.t -> float * int
val since_epoch_approx : Netdate.t -> float
val week_day : Netdate.t -> int
val year_day : Netdate.t -> int
val iso8601_week_pair : Netdate.t -> int * int
val parse_epoch :
?l9n:Netdate.compiled_localization ->
?localzone:bool -> ?zone:int -> string -> float
val parse_epoch_timespec :
?l9n:Netdate.compiled_localization ->
?localzone:bool -> ?zone:int -> string -> float * int
val parse_epoch_approx :
?l9n:Netdate.compiled_localization ->
?localzone:bool -> ?zone:int -> string -> float
val format_to :
?l9n:Netdate.compiled_localization ->
Netchannels.out_obj_channel -> fmt:string -> Netdate.t -> unit
val format :
?l9n:Netdate.compiled_localization -> fmt:string -> Netdate.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
end