I am having a timestamp edit code problem with midnight as 00:00:00 but 
I want 24:00:00
Booth, I don't think you can easily do this.  There was a discussion a 
while back about time data types and if I recall, the conclusion was 
That's Just The Way It Is.
00.00.00 is the end of today and 24.00.00 is the beginning of tomorrow 
but you still can't compare them, i.e.
d stamp           s               z
c/free
  stamp = z'2007-05-16-00.00.00';
    dsply (stamp + %seconds(1));  // 2007-05-16-00.00.01
    dsply (stamp - %seconds(1));  // 2007-05-15-23.59.59
  stamp = z'2007-05-16-24.00.00';
    dsply stamp;                  // 2007-05-16-24.00.00
    dsply (stamp + %seconds(1));  // 2007-05-17-00.00.01
    dsply (stamp - %seconds(1));  // 2007-05-16-23.59.59
  if stamp = z'2007-05-17-00.00.00';
    dsply 'unexpectedly equal';
  endif;
  *inlr = *on;
 /end-free
 
As an Amazon Associate we earn from qualifying purchases.
	
 
This mailing list archive is Copyright 1997-2025 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.