caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* .-
@ 2004-12-24 10:04 Anastasia Gornostaeva
  2004-12-24 10:53 ` [Caml-list] .- Benjamin Geer
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Anastasia Gornostaeva @ 2004-12-24 10:04 UTC (permalink / raw)
  To: Caml-list

Hello.

open Unix

let _ =
   let curr_time = time () in
   let curr_tm = gmtime curr_time in
   let new_time, _ = mktime {curr_tm with tm_hour = curr_tm.tm_hour+1} in
   let diff = new_time -. curr_time in
      Printf.printf "%f\n%f\n%f\n"
	 curr_time
	 new_time
	 diff


gives an negative result -7200.000000. Why? 


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

end of thread, other threads:[~2004-12-24 12:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-24 10:04 .- Anastasia Gornostaeva
2004-12-24 10:53 ` [Caml-list] .- Benjamin Geer
2004-12-24 11:25   ` skaller
2004-12-24 11:34     ` Benjamin Geer
2004-12-24 11:07 ` Alexander Fuchs
2004-12-24 11:27   ` Anastasia Gornostaeva
2004-12-24 11:14 ` Julien Cristau
2004-12-24 11:19 ` skaller
2004-12-24 12:14   ` Anastasia Gornostaeva

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).