Display Flexy Clock Time in ViewON

Is it possible to display the Flexy’s current time in viewon? I think I would need to create a tag in the Flexy that would read the current time but i’m not sure how to do this.

Please advise.

@Rick12

The easiest way to display the time is to use a basic script in viewon.

If you create a text element then navgiate to the animations tab.
Right click and choose text --> simple.

In here,under the tag section to write, type the following line in the basic script:
viewon! = time$

This method is described in the viewon getting started manual on page 38/39.
https://websupport.ewon.biz/sites/default/files/aug-005-2-en-viewon_-_getting_started.pdf

1 Like

Thanks! That worked for me.
Can I change the format to be DD/MM/YYYY instead of YYYY/MM/DD?

1 Like

@Rick12

This is possible but you will have to parse the time string into different string variables then re-arrange it.

Example:

T$ = Time$
year$ = T$(7 To 10)
mon$ = T$(4 To 5)
day$ = T$(1 To 2)
hour$ = T$(12 To 13)
min$ = T$(15 To 16)
sec$ = T$(18 To 19)

MyDate$ = day$ + "/" + mon$ + "/" + year$
viewon! = MyDate$
1 Like

Bonjour, J’aimerai récupérer et afficher l’intervalle entre deux temps, c’est à dire à la première impulsion de mon tag booléen je récupère le temps puis à la deuxième impulsion je récupère également le temps et au final je récupère l’intervalle entre ces deux temps puis je l’affiche. est ce possible?