The following surprises me:
 
> (seconds->date (sub1 (expt 2 40)))
seconds->date: integer is out-of-range
  integer: 1099511627775

Nevertheless I can go further on in time:
 
> (seconds->date (sub1 (expt 2 50)))
#(struct:date*
  40
  5
  11
  23
  9
  22520
  1
  266
  #t
  7200
  0
  "Romance Daylight Time")
 
But when I go too far in future, I find myself in the past:
 
> (seconds->date (sub1 (expt 2 62)))
#(struct:date*
  59
  59
  0
  1
  1
  1970 ---> the future seems to be in the past
  4
  0
  #f
  3600
  0
  "Romance Standard Time")
 
This in the REPL of DrRacket (64 bits, Windows 7)
Anyone an idea what is happening here?
Things go well with seconds < (expt 2 31)
Thanks, Jos

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to