RE: Simple(?) 4gl question
Posted in 1999
> -----Mensaje original----- > De: proberts@lynx.informix.com [SMTP:proberts@lynx.informix.com] > Enviado el: Thursday, August 12, 1999 3:25 PM > Para: informix-list@iiug.org > Asunto: Re: Simple(?) 4gl question > > In article <7ov9th$dv1@newsstand.cit.cornell.edu>, > Respectful <please_reply@newsgroup.com> wrote: > >suppose I want to find time difference for two variables expressed as > year > >to fraction , say l_start and l_end (l_diff is also the same type) > > > >if I say > > > >l_start = current > >sleep 5 > >l_end = current > >l_diff = l_end - l-start > > > >l_diff when displayed shows all zeros, I'd like to say 5 seconds (or > >whatever) > > > >any ideas? > > Curious, it works for me. This program: > > | main > | > | define l_start, l_end datetime year to fraction(3) > | define l_diff interval day to fraction(3+++++++++++++++aqui esta el > detalle > | > | let l_start = current > | sleep 5 > | let l_end = current > | let l_diff = l_end - l_start > | > | display l_diff > | > | end main > > display this: > > | 0 00:00:05.009 >