Hello, everyone,
I’m just freaking out…
I’m trying to show future hours in 24 hour format. But I can’t do this. From 12:00 p.m., 01:00 a.m. is displayed again in the 12 hour format.
From 8 a.m. (AM) the problems start…
The past few hours have also caused problems.
If the clock shows 1 a.m., then the past hours are displayed as 59, 58, etc.
I hope you can give me a tip… Thank you in advance…
Hi @daredevill . Sorry to say your Face is a bit of a mess .
your Hrs-1 Text Tag includes
$((#DH#+59)%60)<10?0:$((#DH# + 59) % 60)
So that is why it is showing numbers like 59 .
You have to decide if it is a 12 or 24 hours Digital . As @tom.vannes has pointed out .
#Dh# = 1 - 12 hrs
#DH# = 0 - 23 hrs
Mixing them up gets one into a bit of a pickle .
You are very nearly there . Switch off all the layers except the ones to the right and left of your real time . Work on one at a time and let it grow .
@petr.patocka Not sure where that link is supposed take us.
So sorry I clicked on the link Last night and it took me to the main Facer.io page ,
This morning it works fine .
I find this Jiggery Pokery a bit difficult .
I see it working but do not have the Wit to convert it to 24 hrs as @daredevill was asking .
As @tom.vannes & @russellcresser point out, mixing 12/24 hours in scrolling previous/next numbers can be a pickle, but it can work. The following example from the old facer elements only challenge makes it work & is fully 12/24 hour compatible. For your example, just swap the X & Y Axis. Good luck!
Edit:
Or perhaps if you want things that only start to shift slightly before the time change, this example may be of use:
in advance, many thanks for your help. I’m a little further now.
But… maybe I’m too precise… but at the turn of the day (i.e. between 11pm and 2am) the formulas indicate chaos!
Here is an example of the formulas of @bradtc :
Facer copes well with this stuff. You have some Syntax problems. They are always difficult to Debug. Take a good look at @bradtc Faces he has I cracked there. It is crossing the Zero that is always the problem. It has been done in many ways by Differen people. Keep at it.
You always have to add the whole period you want the text to cycle trough and use modulo (reminder of division) with period length.
Check this example: