January 14th, 2013, 03:49 PM
|
#5 (permalink)
|
|
New Member
Thread Author (OP)
Join Date: Dec 2012
Posts: 6
Device(s):
Carrier: Not Provided
Thanks: 0
Thanked 0 Times in 0 Posts
|
Ok, here is what I got. got most of this from another post (thanks unclemike)
Context: headset plugged any
Context: Every hour
Variable Set %MYTIME %TIME
Variable Split %MYTIME "."
Variable Set %MYAMPM "a m"
Variable Set %MYAMPM "p m" If %MYTIME1 > 11
Variable Subtract %MYTIME1 12 If %MYTIME1 > 12
Variable Add %MYTIME1 12 If %MYTIME1 = 0
Variable Set %MYTIME1 %MYTIME1 [Do Maths] (should eliminate any leading zeros)
Variable Set %MYTIME2 %MYTIME2 [Do Maths] (should eliminate any leading zeros)
Variable Set %MYTIME2 "O Clock" If %MYTIME2 = 0
Variable Set %MYTIME2 "o %MYTIME2" If %MYTIME2 < 10
Say %MYTIME1 %MYTIME2 %MYAMPM
|
|
|