caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Ocaml secrets
@ 2000-01-12 15:31 Norman Ramsey
  2000-01-12 17:56 ` David Brown
  2000-01-12 22:35 ` Francois Rouaix
  0 siblings, 2 replies; 3+ messages in thread
From: Norman Ramsey @ 2000-01-12 15:31 UTC (permalink / raw)
  To: caml-list

I've been going nuts copying record-type definitions, and then Benjamin Pierce
showed me a trick.

Please tell me where in the OCaml manual I could have discovered
the ability to write

  tm.Unix.tm_hour

as in

        let tm = Unix.localtime (Unix.time()) in
        sprintf "%02d:%02d:%02d " tm.Unix.tm_hour tm.Unix.tm_min tm.Unix.tm_sec


Norman

P.S.  just writing let tm = ... in ... tm.tm_hour ... etc causes ocamlc to barf.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-01-13 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-12 15:31 Ocaml secrets Norman Ramsey
2000-01-12 17:56 ` David Brown
2000-01-12 22:35 ` Francois Rouaix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).