mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
SRFI-19: time-utc->date: Support non-integer nanoseconds values.
* module/srfi/srfi-19.scm (time-utc->date): Use 'floor-remainder' instead of 'modulo'.
This commit is contained in:
parent
8e0dfaca19
commit
f9df551574
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@
|
|||
(rem (remainder int-secs (* 60 60)))
|
||||
(minutes (quotient rem 60))
|
||||
(seconds (remainder rem 60)))
|
||||
(make-date (modulo nanoseconds nano)
|
||||
(make-date (floor-remainder nanoseconds nano)
|
||||
seconds
|
||||
minutes
|
||||
hours
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue