Re: interval operations
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WE1WHik8TJupeTrL+oUpNXu=MpjmJvkZAi9Mw0nFqmM7g@mail.gmail.com> |
Should be fixed in CVS... I think the problem is that the result of the subtraction is 0 - and it was thinking - thats got no year , or month - so it must be a day to second ie. 0 00:00:00.0 You're then comparing that interval with a year to month interval - and its saying - no... I've coded it so that if it sees a datetime with a precision <= year to month - the result of the subtraction must be a year to month. On 12 December 2012 12:30, Michal Hajek <[email protected]> wrote: > define XD,DAT date, > I1,I2 datetime year to month > > main > let XD="12122012" > let I1=extend(XD, year to month) > let I2=extend(XD, year to month) > if (I1 - I2 = "0000-00") then > display "OK" > end if > > end main > ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss