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


  • Subject: Re: doing date arithmetic in CL
  • From: "Tony Jackson" <tony@xxxxxxxxxxxxxxxxxxxx>
  • Date: Sat, 8 Jan 2000 14:32:53 -0000

Title: RE: doing date arithmetic in CL
one way is to divide current year by 4..if a full number is returned..its a leap year...ie...then add one to array(feb)
BPCS/AS400 Support Technician.
Computing Services to Industry.SSA affiliate.
http://www.jackocsi.karoo.net/tony.htm
-----Original Message-----
From: Naser Vassef <Naser_Vassef@orcom.com>
To: RPG400-L@midrange.com <RPG400-L@midrange.com>
Date: 07 January 2000 23:31
Subject: RE: doing date arithmetic in CL

I'm coding a CL to ensure the last day of a month is written to &DAY field by looking at the MONTH value and set to either 31, 30 or 28. How will I calculate the Leap years? ( Feb 29)

I did condition up to the year 2020, is there a better way in CL without having to call a RPG program.

Thanks


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.