1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00
Commit graph

28 commits

Author SHA1 Message Date
Ludovic Courtès
0867f7baa8 Changes from arch/CVS synchronization 2007-07-09 16:47:56 +00:00
Ludovic Courtès
c122500a28 Changes from arch/CVS synchronization 2007-05-09 21:14:49 +00:00
Ludovic Courtès
a7db552243 Changes from arch/CVS synchronization 2007-05-09 20:18:31 +00:00
Ludovic Courtès
2656b1b208 Changes from arch/CVS synchronization 2007-02-04 21:16:31 +00:00
Ludovic Courtès
a2f00b9b36 Changes from arch/CVS synchronization 2007-01-31 20:58:20 +00:00
Kevin Ryde
1b09b607dd merge from 1.8 branch 2006-04-16 23:18:55 +00:00
Kevin Ryde
73e2a8d1e0 (priv:leap-second-table): Add new 2005 leap second. 2005-08-18 23:43:37 +00:00
Marius Vollmer
92205699d0 The FSF has a new address. 2005-05-23 19:57:22 +00:00
Kevin Ryde
ab8f1b99f1 Add a copyright year. 2003-08-22 22:29:29 +00:00
Kevin Ryde
f3cc3dabe6 (date-week-number): Correction, day of week starting
week applied was off by one.
2003-08-22 22:28:53 +00:00
Marius Vollmer
73be1d9e8e Changed license terms to the plain LGPL thru-out. 2003-04-05 19:15:35 +00:00
Thien-Thi Nguyen
6be07c5278 Update copyright.
Point to manual in commentary; nfc.
2002-03-28 01:39:12 +00:00
Thien-Thi Nguyen
0706ae06dc Update copyright.
Add commentary; nfc.
2002-03-28 00:21:04 +00:00
Neil Jerram
359b471e26 * Fix date-week-number bug in srfi-19.scm. 2002-02-23 22:24:24 +00:00
Neil Jerram
cd328b4fef * Fix a typo that crept in with the scm_X_t to scm_t_X rename.
* Partial fix for date-week-number bug.
2002-02-22 23:14:38 +00:00
Thien-Thi Nguyen
ee4beedcf4 (time-monotonic->time-monotonic): Spurious; remove from exports. 2001-11-06 22:21:29 +00:00
Mikael Djurfeldt
b21cccf315 * srfi-19.scm (priv:split-real): Inserted missing call to
inexact->exact.
2001-09-22 21:17:31 +00:00
Thien-Thi Nguyen
afb47f6d45 (add-duration): Fix bug: Call `add-duration!' w/ two args.
Thanks to Alex Shinn.
2001-08-25 18:40:11 +00:00
Martin Grabmüller
4c4185ee95 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
Guaranteed. (Maybe)

	* srfi-19.scm: Define `current-time' before exporting it.
2001-07-17 19:41:49 +00:00
Rob Browning
b4d2a48e9d * srfi-19.scm (priv:locale-reader): don't need open-output-string. 2001-07-06 14:00:13 +00:00
Marius Vollmer
4549ba4ac6 The SRFI-19 implementation was completely broken. Already the
reference implementation did not handle DST and time zones properly
and relied on non-R5RS-isms like passing reals to `quotient'.  For
Guile, some additional fixes were needed because of the incomplete
numeric tower implementation.  See also srfi-19.test.

* srfi-19.scm (date-zone-offset): Fixed typo in export clause.
(add-duration): Renamed from priv:add-duration.
(priv:time-normalize!): Handle fractional nanoseconds; remove
duplicate definition.  (priv:current-time-tai): Fixed typo.  (time=?,
time<=?): Fixed typos.  (time-tai->time-utc, time-utc->time-tai,
time-utc->time-monotonic): Use make-time-unnormalized instead of
make-time when uninitialized time fields are used.
(set-date-nanosecond!, set-date-second!, set-date-minute!,
set-date-hour!, set-date-day!, set-date-month!, set-date-year!,
set-date-zone-offset!): Define.  (priv:local-tz-offset): Take an extra
argument in order to handle DST effects.  (time-utc->date,
time-tai->date, time-monotonic->date): Handle the changed signature of
priv:local-tz-offset. Don't pass non-integer arguments to quotient
(non-R5RS, not supported by Guile).  (date->time-utc): Ensure that
seconds in a date structure are always exact integers.  Handle DST
properly.  (current-date, julian-day->date,
modified-julian-day->date): Handle the changed signature of
priv:local-tz-offset.  (julian-day->time-utc): Reverted earlier
inexact->exact hack; make-time now handles inexact arguments.
(priv:locale-print-time-zone): At least print the numerical time zone.
(priv:integer-reader): Fixed named let iteration.
(priv:read-directives): Use set-date-month! instead of
priv:set-date-month! etc.  (string->date): Handle DST properly.
2001-06-18 18:30:58 +00:00
Marius Vollmer
f480396be5 *** empty log message *** 2001-06-03 23:34:08 +00:00
Michael Livshin
6b0d28a380 * srfi-19.scm: removed a stray open parenthesis. (thanks to
Matthias Köppe for the report).
2001-05-28 14:36:00 +00:00
Rob Browning
5e1fb41f97 * srfi-19.scm (:optional): renamed to optional to avoid reader
keywords conflict.  Time passes... Removed :optional altogether
and just handle optional args directly.  Thanks to Matthias Koeppe
for the report of this and the two bits below.
(priv:decode-julian-day-number): add inexact->exact for truncate
result.
(time-utc->date): add inexact->exact and floor so quotient will
work.
2001-05-23 17:00:22 +00:00
Rob Browning
b9309d1665 * srfi-19.scm (:optional): renamed to optional to avoid reader
keywords conflict.  Thanks to Matthias Koeppe for the report.
2001-05-23 15:24:41 +00:00
Martin Grabmüller
1b2f40b9f1 * README: Update, document available SRFIs.
* srfi-19.scm, srfi-17.scm, srfi-16.scm, srfi-14.scm, srfi-13.scm,
	srfi-11.scm, srfi-10.scm, srfi-9.scm, srfi-8.scm, srfi-6.scm,
	srfi-2.scm: Use `cond-expand-provide' for providing features to
	`cond-expand'.
2001-05-23 05:04:55 +00:00
Rob Browning
5a1920ded2 * srfi-19.scm (priv:integer-reader-exact): minor cleanups. 2001-05-17 04:54:59 +00:00
Rob Browning
5bbfe8cbf1 * srfi-19.scm: New file - time/date SRFI. Thanks to Will Fitzgerald. 2001-05-06 03:31:19 +00:00