× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Even more interesting is the result of this SQL:

SELECT timestamp(current date + 1 days, '00:00:00') - timestamp(current
date,'24:00:00')
FROM sysibm.sysdummy1

It appears that the difference is 0.000000

SELECT timestamp(current date + 1 days, '00:00:01') - timestamp(current
date,'24:00:00')
FROM sysibm.sysdummy1

This gives 1.000000

So why are the first two timestamps not equal (as Vern showed below)?

Curiouser and curiouser...

Results from RPG tests will follow.

Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we. Futile is resistance, assimilated will you be.
-----



Vernon Hamberg <vhamberg@xxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
28/11/2007 14:49
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: 00:00:00 or 24:00:00






A test is easy enough to run - at least in SQL - and I got this
interesting result

select case when timestamp('2007-11-28-24.00.00.000000') < timestamp
('2007-11-29-00.00.00.000000') then 'less than' else 'equal ' end
case from sysibm/sysdummy1

gave me 'less than' as the result. Same with this one

SELECT case when timestamp(current date,'24:00:00') <
timestamp(current date + 1 days, '00:00:00') then 'less than' else
'equal ' end case FROM sysibm/sysdummy1

Now how about a test in RPG?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.