Tag Expression for converting Time to Words

I’m trying to find out how to convert Digital Time to Time displayed in Words/Text. Do I need code used with the existing tag expressions or some sort of “if” statement? I’m hoping that it will be easier than making 60+ “if” statements for every minute/hour.
I must mention that I am not a developer and only make watch faces for my own personal use. Essentially, I’m just trying to be a copy/paste expert. :wink:

Thanks in advance for any help you can provide.

This is four HOUR

(([HOUR_0_11]) == 0 ? “Twelve” : ([HOUR_0_11]) == 1 ? “One” :([HOUR_0_11]) == 2 ? “Two” :([HOUR_0_11]) == 3 ? “Three”:([HOUR_0_11]) == 4 ? “Four”:([HOUR_0_11]) == 5 ? “Five”:([HOUR_0_11]) == 6 ? “Six”:([HOUR_0_11]) == 7 ? “Seven”:([HOUR_0_11]) == 8 ? “Eight”:([HOUR_0_11]) == 9 ? “Nine”:([HOUR_0_11]) == 10 ? “Ten”:([HOUR_0_11]) == 11 ? “Eleven”:"")

2 Likes

Thank you! I had a feeling that I would need code for each hour name and each minute name. Now to try it out.
Much appreciated!

Hi when i try to copy this and paste it in tag of hours in watchfacestudio doesnt work.

has the forum added some extra characters to this tag above please?

When you copied the code, the quotes were smart quotes. You will need to replace the smart quotes with straight quotes.

2 Likes

Thank you very much for the reply its working.
How to do this for mins please ,

i tried for mins like this
([MIN_Z]) == 59 ? “Fifty nine” :([MIN_Z]) == 0 ? “Zero” …

tag of hours in watchfacestudio doesnt work.

hours is working for me with above tag. given

mins i dont know how to or maybe i go the bitmap font way by making 60 pngs

EDIT : I made 60 pngs for Minutes in photoshop, not convenient but can do the required job

2 Likes
(([MIN])==0?"Zero":([MIN])==1?"One":([MIN])==2?"Two":([MIN])==3?"Three":([MIN])==4?"Four":([MIN])==5?"Five":([MIN])==6?"Six":([MIN])==7?"Seven":([MIN])==8?"Eight":([MIN])==9?"Nine":([MIN])==10?"Ten":([MIN])==11?"Eleven"([MIN])==12?"Twelve":([MIN])==13?"Thirteen":([MIN])==14?"Fourteen":([MIN])==15?"Fifteen":([MIN])==16?"Sixteen":([MIN])==17?"Seventeen":([MIN])==18?"Eighteen":([MIN])==19?"Nineteen":([MIN])==20?"Twenty":([MIN])==21?"Twenty-one":([MIN])==22?"Twenty-two":([MIN])==23?"Twenty-three":([MIN])==24?"Twenty-four":([MIN])==25?"Twenty-five":([MIN])==26?"Twenty-six":([MIN])==27?"Twenty-seven":([MIN])==28?"Twenty-eight":([MIN])==29?"Twenty-nine":([MIN])==30?"Thirty":([MIN])==31?"Thirty-one":([MIN])==32?"Thirty-two":([MIN])==33?"Thirty-three":([MIN])==34?"Thirty-four":([MIN])==35?"Thirty-five":([MIN])==36?"Thirty-six":([MIN])==37?"Thirty-seven":([MIN])==38?"Thirty-eight":([MIN])==39?"Thirty-nine":([MIN])==40?"Forty":([MIN])==41?"Forty-one":([MIN])==42?"Forty-two":([MIN])==43?"Forty-three":([MIN])==44?"Forty-four":([MIN])==45?"Forty-five":([MIN])==46?"Forty-six":([MIN])==47?"Forty-seven":([MIN])==48?"Forty-eight":([MIN])==49?"Forty-nine":([MIN])==50?"Fifty":([MIN])==51?"Fifty-one":([MIN])==52?"Fifty-two":([MIN])==53?"Fifty-three":([MIN])==54?"Fifty-four":([MIN])==55?"Fifty-five":([MIN])==56?"Fifty-six":([MIN])==57?"Fifty-seven":([MIN])==58?"Fifty-eight":([MIN])==59?"Fifty-nine":"")

You can use this for minutes

2 Likes

Thank you so much will try it today :+1::+1:

In the formula was an dubbel dot missing.
In the axample wfs below is the formula right also for seconds

DON NOT UNZIP BUT RENAME FILE …wfs

zlx110.zip (458.6 KB)
zlx110_1

2 Likes

(([HOUR_0_11])==0?“zero”:([HOUR_0_11])==1?“One”:([HOUR_0_11])==2?“Two”:([HOUR_0_11])==3?“Three”:([HOUR_0_11])==4?“Four”:([HOUR_0_11])==5?“Five”:([HOUR_0_11])==6?“Six”:([HOUR_0_11])==7?“Seven”:([HOUR_0_11])==8?“Eight”:([HOUR_0_11])==9?“Nine”:([HOUR_0_11])==10?“Ten”:([HOUR_0_11])==11?“Eleven”:"")

(([MIN])==0?“Zero”:([MIN])==1?“One”:([MIN])==2?“Two”:([MIN])==3?“Three”:([MIN])==4?“Four”:([MIN])==5?“Five”:([MIN])==6?“Six”:([MIN])==7?“Seven”:([MIN])==8?“Eight”:([MIN])==9?“Nine”:([MIN])==10?“Ten”:([MIN])==11?“Eleven”:([MIN])==12?“Twelve”:([MIN])==13?“Thirteen”:([MIN])==14?“Fourteen”:([MIN])==15?“Fifteen”:([MIN])==16?“Sixteen”:([MIN])==17?“Seventeen”:([MIN])==18?“Eighteen”:([MIN])==19?“Nineteen”:([MIN])==20?“Twenty”:([MIN])==21?“Twenty-one”:([MIN])==22?“Twenty-two”:([MIN])==23?“Twenty-three”:([MIN])==24?“Twenty-four”:([MIN])==25?“Twenty-five”:([MIN])==26?“Twenty-six”:([MIN])==27?“Twenty-seven”:([MIN])==28?“Twenty-eight”:([MIN])==29?“Twenty-nine”:([MIN])==30?“Thirty”:([MIN])==31?“Thirty-one”:([MIN])==32?“Thirty-two”:([MIN])==33?“Thirty-three”:([MIN])==34?“Thirty-four”:([MIN])==35?“Thirty-five”:([MIN])==36?“Thirty-six”:([MIN])==37?“Thirty-seven”:([MIN])==38?“Thirty-eight”:([MIN])==39?“Thirty-nine”:([MIN])==40?“Forty”:([MIN])==41?“Forty-one”:([MIN])==42?“Forty-two”:([MIN])==43?“Forty-three”:([MIN])==44?“Forty-four”:([MIN])==45?“Forty-five”:([MIN])==46?“Forty-six”:([MIN])==47?“Forty-seven”:([MIN])==48?“Forty-eight”:([MIN])==49?“Forty-nine”:([MIN])==50?“Fifty”:([MIN])==51?“Fifty-one”:([MIN])==52?“Fifty-two”:([MIN])==53?“Fifty-three”:([MIN])==54?“Fifty-four”:([MIN])==55?“Fifty-five”:([MIN])==56?“Fifty-six”:([MIN])==57?“Fifty-seven”:([MIN])==58?“Fifty-eight”:([MIN])==59?“Fifty-nine”:"")

(([SEC])==0?“Zero”:([SEC])==1?“One”:([SEC])==2?“Two”:([SEC])==3?“Three”:([SEC])==4?“Four”:([SEC])==5?“Five”:([SEC])==6?“Six”:([SEC])==7?“Seven”:([SEC])==8?“Eight”:([SEC])==9?“Nine”:([SEC])==10?“Ten”:([SEC])==11?“Eleven”:([SEC])==12?“Twelve”:([SEC])==13?“Thirteen”:([SEC])==14?“Fourteen”:([SEC])==15?“Fifteen”:([SEC])==16?“Sixteen”:([SEC])==17?“Seventeen”:([SEC])==18?“Eighteen”:([SEC])==19?“Nineteen”:([SEC])==20?“Twenty”:([SEC])==21?“Twenty-one”:([SEC])==22?“Twenty-two”:([SEC])==23?“Twenty-three”:([SEC])==24?“Twenty-four”:([SEC])==25?“Twenty-five”:([SEC])==26?“Twenty-six”:([SEC])==27?“Twenty-seven”:([SEC])==28?“Twenty-eight”:([SEC])==29?“Twenty-nine”:([SEC])==30?“Thirty”:([SEC])==31?“Thirty-one”:([SEC])==32?“Thirty-two”:([SEC])==33?“Thirty-three”:([SEC])==34?“Thirty-four”:([SEC])==35?“Thirty-five”:([SEC])==36?“Thirty-six”:([SEC])==37?“Thirty-seven”:([SEC])==38?“Thirty-eight”:([SEC])==39?“Thirty-nine”:([SEC])==40?“Forty”:([SEC])==41?“Forty-one”:([SEC])==42?“Forty-two”:([SEC])==43?“Forty-three”:([SEC])==44?“Forty-four”:([SEC])==45?“Forty-five”:([SEC])==46?“Forty-six”:([SEC])==47?“Forty-seven”:([SEC])==48?“Forty-eight”:([SEC])==49?“Forty-nine”:([SEC])==50?“Fifty”:([SEC])==51?“Fifty-one”:([SEC])==52?“Fifty-two”:([SEC])==53?“Fifty-three”:([SEC])==54?“Fifty-four”:([SEC])==55?“Fifty-five”:([SEC])==56?“Fifty-six”:([SEC])==57?“Fifty-seven”:([SEC])==58?“Fifty-eight”:([SEC])==59?“Fifty-nine”:"")

2 Likes

Salute :slightly_smiling_face: :ok_hand:

Thankyou so much for sharing the complete expression made including secs.
This one i made yesterday with pngs made for bitmap font . Hopefully i can make bigger text size now :smiley:

photo_2021-10-30_11-10-38

Thanks a Lot :grin:

This will surely be battery killer :smiley:

It’s not a battery killer for me (LTE Galaxy Watch4 Classic 42mm). Pretty conservative especially when using a Black background.

Using seconds too ? That huge expression needs to be processed every second. Hours / minutes should be ok.

i used neither minutes nor hours nor seconds tag :smiley: :wink:
at the end i had to make 60 pngs for minutes and 12 for hours :smiley:

Why because this didn’t solve my sizing issues,

plus i wanted to make one o one, one o two till 10
was possible with tags but i had size formatting issues
i wanted to keep double numbers like 22,44 etc bigger size

i feel bitmap pngs gave me more control
for bigger sizing so after making 60 pngs and re making them 3 times, im good :stuck_out_tongue:
Numbers 21 to 29 gave me good tough time :smiley:
Now adjusting sizes…


:digital basic 1c_1635631935398

EDIT: @GJL @EKWatchFaces @VizFX

BUT i am going to use it on this one.
turns out outline font is more difficult to adjust :smiley:

So thankyou to all of you very much for helping with the expression text .
it saved a lot of time :smiley: Salut

1 Like