module Stog_date: sig
.. end
Support for common date/time parsing and formatting.
Many routines refer to the epoch, which for Unix is
00:00:00 UTC, January 1, 1970.
type t = {
|
year :int ; |
|
month :int ; |
|
day :int ; |
|
hour :int ; |
|
minute :int ; |
|
second :int ; |
|
zone :int ; |
|
week_day :int ; |
}
val localzone : int
val create : ?zone:int -> float -> t
Convert the time (seconds since the epoch) to a date/time record
val parse : string -> t
Parse a string and return a date/time record
val since_epoch : t -> float
Convert a date/time record into the time (seconds since the epoch)
val parse_epoch : string -> float
Parse a string and return the time (seconds since the epoch
val format_to : Buffer.t -> fmt:string -> t -> unit
val format : fmt:string -> t -> string
val mk_mail_date : ?zone:int -> float -> string
val mk_usenet_date : ?zone:int -> float -> string