#457 closed defect (fixed)
srfi-18 time->seconds not returning seconds.
| Reported by: | Alan Post | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 4.9.0 |
| Component: | core libraries | Version: | 4.6.x |
| Keywords: | Cc: | alanpost@… | |
| Estimated difficulty: |
Description
I'm running chicken from the experimental branch on OpenBSD 4.8.
I'm using the time-related routines in srfi-18.
The following program:
$ csi #;1> (use srfi-18) ; loading library srfi-18 ... #;2> (time->seconds (seconds->time 2)) 2000000.0
I would expect the output of the conversion to be symmetrical, where if I give (seconds->time) a 2, converting the time back to seconds using (time->seconds) should return 2. (probably 2.0) Instead this call is returning the microseconds.
I would love to see srfi-18 extended to have a (time->microseconds) and (microseconds->time) procedures, as I love having time resolution at this scale. This could also, of course, be fixed by scaling the real number returned from these routines.
Change History (4)
comment:1 Changed 15 years ago by
| Cc: | alanpost@… added |
|---|
comment:2 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

Should be fixed now.