Add 1 hour to time
Roger.E.Eller at sealedair.com
Roger.E.Eller at sealedair.com
Mon Apr 17 14:52:42 EDT 2006
Jeff Honken wrote:
> I know there must be a simple way to do this but it's excaping me. I
> just need to add one hour to a time that I've set. Here's the code that
> doesn't work but it's the general idea:
Jeff, I believe "convert" is what you are looking for.
on mouseUp
put "10:00 AM" into currentTime
convert currentTime to seconds
put currentTime + (60*60) into FutureTime
convert FutureTime to time
answer FutureTime
end mouseUp
Roger Eller <roger.e.eller at sealedair.com>
More information about the use-livecode
mailing list