this is pulled out of my alarm clock but i had a working digital clock in it this is what i used for it
alias currenttime { did -ra alarmclock.System 8 $time(h:nn::ss:tt) }
this is the part that activated it
on *:dialog:alarmclock.System:init:*: { alarmsound .timercurrenttime 0 1 currenttime