× 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.



Bruce Vining wrote:
dT1 s z inz(Z'2007-11-27-23.59.59.999999') dT2 s z inz(Z'2007-11-28-00.00.00.000001') dT3 s z /free T3 = T1 + %mseconds(1); dsply T3; T3 = T2 - %mseconds(1); dsply T3;
T3 -= %mseconds(1); dsply T3; *inlr = *on; return; /end-free This program displays:
DSPLY 2007-11-28-00.00.00.000000 DSPLY 2007-11-28-00.00.00.000000
DSPLY 2007-11-27-23.59.59.999999

And strangely (but not unexpectedly),

D t1...
D S Z inz(Z'2007-11-27-24.00.00.000000')
D t2...
D S Z

/free
t2 = t1 + %mseconds(1) - %mseconds(1);
dsply t2;

if (t2 = t1);
dsply 'Equal';
else;
dsply 'Not equal';
endif;

*inlr = *on;
return;
/end-free

displays the following:
DSPLY 2007-11-28-00.00.00.000000
DSPLY Not equal

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.