ambientdroid
Well-Known Member
I also made a talking clock and I think I could help iron a few bugs you may run into or didn't realize.
You should probably make the IF statement > 11 because if it is 12:00 noon with your current set up it won't set am or pm.
I actually have it set up as > 11, I just typed it in wrong here
You may run into other problems you didn't think of as well, and depending on your use for the task it may be bothersome. For instance when it is 12:15 am it will say the time as 00:15 am (zero zero fifteen am).
Any am time (9:15 am) will be announced zero nine fifteen am.
Any time it is on the hour (5:00pm) it is going to say five zero zero pm.
Whenever the second part of the time is less than 10 (9:06 am), it will be announced as nine zero six am.
Like I said, it depends if you mind those sort of things or not. For me, I like figuring out these problems and solutions for myself. But if you decided to change something and wanted any assistance I would be glad to help.
You're right, that's a bunch of things I didn't consider. Of course it doesn't really matter. But then again if close-enough-was-good-enough I would have just left it the way it was with %TIME.
I've all ears...er...eyes.