Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Feature request 1478380, and patch: msg#00000

java.sisc.devel

Subject: Feature request 1478380, and patch


Greetings.

I've addressed feature-request 1478380 (finally!).

In the course of doing so, I added a couple of cases to the SRFI-19 unit test code, which I've also submitted to the SRFI-19 mailing list. Might you consider adding these to the SISC SRFI-19 port?

I've attached a patch to sisc/src/sisc/modules/srfi/srfi-19/srfi-19- test-suite.scm This includes some changes which are only indentation fixes, and the only materially important part of it is the addition of two tests at the bottom:

(define-s19-test! "Date-JD conversions"
(lambda ()
(and (= (date->julian-day (make-date 0 0 0 12 25 2 1996 0)) ; zero TZ offset
2450139)
;; ...and the same civil time, 6 hours further east
(= (date->julian-day (make-date 0 0 0 12 25 2 1996 (* 6 3600)))
(- 2450139 1/4)))))

(define-s19-test! "Time to date round-trips"
(lambda ()
(let ((zero-diff (make-time 'time-duration 0 0)))
(and (let ((x (current-time 'time-monotonic)))
(time=? zero-diff
(time-difference
x
(date->time-monotonic ;round-trip monotonic- date-monotonic
(time-monotonic->date x)))))
(let ((x (current-time 'time-tai)))
(time=? zero-diff
(time-difference
x
(date->time-tai
(time-tai->date x)))))
(let ((x (current-time 'time-utc)))
(time=? zero-diff
(time-difference
x
(date->time-utc
(time-utc->date x)))))))))

I hope this helps.

All the best,

Norman


--
------------------------------------------------------------------------ ----
Norman Gray / http://nxg.me.uk
eurovotech.org / University of Leicester, UK


Attachment: srfi-19-test-suite.scm.patch.gz
Description: GNU Zip compressed data


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
SISC-devel mailing list
SISC-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sisc-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe