1 (* Example program which uses Date::Parse.
2 * Copyright (C) 2003 Merjis Ltd.
3 * $Id: parsedate.ml,v 1.2 2003-12-11 17:41:52 rich Exp $
12 (* Parse dates passed on the command line. *)
13 if Array.length Sys.argv <= 1 then
14 eprintf "parsedate [list of quoted date strings ...]\n"
16 let strings = List.tl (Array.to_list Sys.argv) in
18 printf "input string = '%s' ->\n" s;
20 printf "\ttime_t = %f\n" t;
22 printf "\tconverted back to string = %s\n" s;
27 (* Perform a full collection - good way to find GC/allocation bugs. *)