Summary
srfi-18 time->seconds not returning seconds.
Metadata
- Id: 25048b412663692aab85ac6cbd78704578f619ac
- Trac id: 457
- Type: defect
- Reporter: alanpost
- Owner:
- Cc: alanpost@sunflowerriver.org
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: 4.9.0
- Version: 4.6.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2010-12-16 20:18:03 UTC
- Keywords:
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.
Changes and comments
[2010-12-16 20:18:50 UTC] alanpost set cc to alanpost@sunflowerriver.org
[2010-12-18 12:25:02 UTC] felix changed status from new to closed
[2010-12-18 12:25:02 UTC] felix set resolution to fixed
[2010-12-18 12:25:02 UTC] felix wrote:
Should be fixed now.
[2011-06-01 09:00:41 UTC] felix changed milestone from 4.7.0 to 4.8.0
[2011-06-01 09:00:41 UTC] felix wrote:
Milestone 4.7.0 deleted
[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted