SyntaxError: Unexpected token '{' when using clock and text
what's wrong??
Thanks for pointing this out. It seems that the github markdown format was changed and the readme is now rendered incorrectly. Paste this into the emoji field:
eval ['🕛','🕐','🕑','🕒','🕓','🕔','🕕','🕖','🕗','🕘','🕙','🕚'][((new Date()).getHours()%12)];
Paste this into the text field:
eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();`${fmt(d.getHours())}:${fmt(d.getMinutes())}:${fmt(d.getSeconds())}`;
eval ['🕛','🕐','🕑','🕒','🕓','🕔','🕕','🕖','🕗','🕘','🕙','🕚'][((new Date()).getHours()%12)];
How about 12 hour format?
about 12 hour idk
Thanks for pointing this out. It seems that the github markdown format was changed and the readme is now rendered incorrectly. Paste this into the emoji field:
eval ['🕛','🕐','🕑','🕒','🕓','🕔','🕕','🕖','🕗','🕘','🕙','🕚'][((new Date()).getHours()%12)];Paste this into the text field:
eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();`${fmt(d.getHours())}:${fmt(d.getMinutes())}:${fmt(d.getSeconds())}`;
this worked, thanks <3
For 12 hour:
eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();`${fmt(d.getHours()%12)}:${fmt(d.getMinutes())} ${d.getHours()>12?'PM':'AM'}`;