> It's really help me a lot. Thanks. But I did a little
> amendment here:
>
> --the 12:00 AM should be 00:00 in international time
>
> hour=integer(systime.item[1])
> tt=the last word of systime
> if (tt contains "A") or (tt contains "a") then
> if hour = 12 then
> hour = 0
> end if
> end if
>
> --the 12:00 PM should be 12:00 in international time
>
> if (tt contains "P") or (tt contains "p") then
> if hour<13 then
> hour=hour+12
> if hour=12 then
> hour=hour-12
> end if
> end if
> end if
Thanks for sending me your ammendment, that should fix a bug or two :)
Here's an optimised and simplified version of that part of the script:
-- check for any configuration of "PM", "p.m" etc,
-- and convert the hour to 24 if it's less then 12
if (tt contains "p") and (hour < 12) then
hour=hour+12
end if
-- check for 12 AM and convert to 00
if (tt contains "a") and (hour = 12) then
hour=0
end if
(I dispensed with the upper and lower case checking, since it appears to be
all the same for Lingo in this case)(pun unintended ;)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]