Module Kwtime

module Kwtime: sig .. end

Time and Date Functions

See: Misha Wolf and Charles Wicksteed, Date and Time Formats, September 15, 1997
Author(s): Keith Waclena


exception Parse_error of string
raised when there is an error in strftime or convert's format string
exception NYI of string
raised when a strftime %-escape is Not Yet Implemented
val weekdayname : int -> string
convert an integer 0..6 to the name of a weekday (0 = Sunday)
val monthname : int -> string
convert an integer 0..11 to the name of a month (0 = January)
val convert : ?tz:int * int -> Unix.tm -> char -> string
convert a single %-escape character to a formatted string
Raises Returns formatted string
tz : time zone as (hours,minutes) offset from zulu
val localtime : unit -> Unix.tm
localtime (): return the localtime for now
val tz : unit -> int * int
tz (): return local timezone as (hours,minutes) offset from zulu.
val strftime : ?tz:int * int -> string -> Unix.tm -> string
format date and time (pure-ocaml implementation of Posix strftime(3))

Bugs:


Raises Returns formatted string
tz : time zone as (hours,minutes) offset from zulu
val w3c : string
w3c time format %Y-%m-%dT%H:%M:%S