Browse thread
type inference problem with Printf.sprintf ?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] type inference problem with Printf.sprintf ? |
On Wed, Oct 27, 2010 at 08:44:10AM +1100, Arlen Cuss wrote: > # open CalendarLib;; > # Calendar.now ();; > - : CalendarLib.Calendar.t = <abstr> > # Printer.Calendar.print "%d/%m/%Y %H:%M:%S\n" (Calendar.now ());; > 26/10/2010 21:43:43 > - : unit = () Even better, use the internationally standardized format for dates: # Printer.Calendar.print "%F %T\n" (Calendar.now ()) ;; 2010-10-27 11:28:59 - : unit = () http://en.wikipedia.org/wiki/ISO_8601 Rich. -- Richard Jones Red Hat