I wrote:
>written to perform divisions with quotient where it obviously needs
>modulo.
Oops, thinko there. It needs floor-quotient, the quotient-like function
that uses floor rounding. modulo is the *remainder*-like function that
uses floor rounding.
-zefram
Looking at day of the week, via SRFI-19's date-week-day:
scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (julian-day->date 1721426 0)
$1 = #
scheme@(guile-user)> (date-week-day (julian-day->date 1721426 0))
$2 = 1
scheme@(guile-user)> (date-week-day (julian-day->date 172142
Computing the duration of the period between two UTC times, using
SRFI-19 mechanisms:
scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (define t0 (date->time-utc (make-date 0 59 59 23 30 6 2012
0)))
scheme@(guile-user)> (define t1 (date->time-utc (make-date 0 1 0 0 1 7 2012
scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (time-difference (make-time time-tai 0 1) (make-time
time-utc 0 1))
$1 = #
SRFI-19 is explicit that it "is an error" if the arguments to
time-difference are of different time types, and correspondingly the
Guile documentation
Computing a difference between two SRFI-19 times, using time-difference,
produces sensible results if the result is positive, but often nonsense
if it's negative:
scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (time-difference (make-time time-tai 0 1) (make-time
time-tai 1
Hi Peter,
Peter TB Brett skribis:
> Lepton EDA is a suite of electronics CAD tools that relies heavily on
> Guile as an extension language, and increasingly for some core
> functionality, such as the netlisting layer. It would be great to get
> a mention on the Guile website as a project that u
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sat, Mar 18, 2017 at 01:10:58AM +, Zefram wrote:
[...]
> Where did you get the idea to use a non-linear year numbering? What's
> your opinion of SRFI-19's (lack of) text on this matter? You should
> consider the possibility of changing your