Hi everyone, can someone help me with a code for time in words. like (five minutes to twelve) or (ten minutes pass three) ?
Hi @MikeStyles ,
Welcome to the forum!
In regards to your question, try the following code snippet to show the current time in words.
$
lv(mn,if(
df(m)=0,"o'clock",
df(m)=15|df(m)=45,"quarter",
df(m)=30,"half",
df(m)>30,tc(n2w,60-df(m)),
tc(n2w,df(m))
))
$$
lv(pf,if(
df(m)>30&df(m)<60,"to","past"
))
$$
lv(hr,tc(n2w,if(
#pf="to",df(h,a1h),df(h)
)))
$$
if(
df(m)=0,
#hr+" "+#mn,
#mn+" minutes "+#pf+" "+#hr
)
$

I hope this would help.
Did you find the most helpful response to your issue?
Please kindly press the
Solution button to mark it as the solution.
This would help others with the similar issue.
![]()
![]()
thanks i appreciate your response, but there’s a glitch with your code.
when the time is 11:59 which it should say one minutes to twelve its rather say 59 minutes to eleven
Hi there,
Thank you for noticing the glitch.
I have updated the script with a bug fix to that glitch. Please copy the script and paste it again in the preset (KWGT, KLWP, KLCK).
I hope this would help.
![]()
![]()
Hi there,
I have updated (again) the script for another glitch. Thanks to @MaxP for noticing and letting me know about it.
Please copy the script and paste it in your preset (KWGT, KLWP, KLCK).
I hope this would help.
![]()
![]()

