Hi all, I need an integer to conform to military time, so
i have to check that the tens digit is no more than 59,
i.e. 2159 is a valid time, 2162 is not.
I've not seen much "arithmetic" done in 4gl so could someone
suggest the best way to check an int for this condition.
↪ replying to monkeys paw
monkeys paw wrote:
> Hi all, I need an integer to conform to military time, so
> i have to check that the tens digit is no more than 59,
> i.e. 2159 is a valid time, 2162 is not.
>
> I've not seen much "arithmetic" done in 4gl so could someone
> suggest the best way to check an int for this condition.
>
What's wrong with a DATETIME HOUR TO SECOND ?
--
Cheers,
Obnoxio the Clown
http://obotheclown.blogspot.com