logical time/date operators?

Klaus Major k_major at os.surf2000.de
Wed Nov 27 09:13:01 EST 2002


Hi Oliver,

> hello:  i want to compare time and date information to determine 
> whether a certain time/date falls within a certain time/date window. 
> apparently, this doesn't work with the > or < operators (at least i 
> cannot get that to work).  will i have to write my own function, is 
> there something built in RR, or does someone have a solution to share? 
>  thanks!  olli.

a good idea (i use it, so it must be a good idea ;-) is to convert 
dates to seconds
and then do the comparison. So you can even add/subtract half a day 
etc...

Try it, it might work for you, too :-)

Hope that helps.


Regards

Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list