Forum Discussion
UshwinPai
5 years agoCommunity Member
Actual clock showing actual time
Hi guys
Spent a while looking for the answer, and trying to build it myself - but to no avail! I want to make a digital clock that works to show the real world time on screen. I am building a f...
DiarmaidCollins
2 years agoCommunity Member
Hi Owen. I know this is a bit old, but is there any chance you could breakdown your very simple-looking code into bite-sized chunks so a dullard like me can make sense of what is happening?var dT = d.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
What is the dT doing? Is it possible to convert this to a 24hr clock, with seconds and have NO AM or PM at the end?
Apologies for having to ask for something so simple to be explained.