package asn1-combinators

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. date : int * int * int;
  2. time : int * int * int * float;
  3. tz : (int * int * [ `W | `E ]) option;
}
val to_posix_time : t -> float
val date_to_posix_time : y:int -> m:int -> d:int -> hh:int -> mm:int -> ss:int -> ff:float -> tz_mm:int -> float

date_to_posix_time ~y ~m ~d ~hh ~mm ~ss ~ff ~tz_mm is the POSIX time corresponding to the calendar date y-m-d at time hh:ss:mm.ff with time zone offset tz_mm in minutes.

Warning. Does not check ranges or that y-m-d is a valid calendar date.