Click the green flag to see the date and time. Thank you so much @PaddlerGames for curating this project on October 8th, 2019! IM AT 768 VIEWS OMG WOW WOW WOW!!! #time #date #clock #Chickenluv24
Thanks to @dn_scrtch for the Intro and Outro Code. Thanks to @joshiesays for the Thumbnail Code. Thanks to @Infinite_Code for the Stop Button Code. Thanks to @theChAOTiC for the Pen Text Engine Code. Okay, how does this work? There are blocks in Scratch that can detect the year, month, date, day of the week, hour, minute and second. The month auto sets itself to a number (i.e. Jenuary = 1, February = 2, etc.) I had to undo this with "if month = 1, set variabe month to january" and similar code for the other months. I also did code like this for the days of the week, which also auto set themselves to numbers (i.e. Sunday = 1, Monday = 2, etc.) I fixed this with "if day = 1, set variabe day of the week to sunday". For the code that makes the minute and second have a 0 in front of it if it is less than 10, I used code like this: "if minute < 10, set variable minute to join 0 and minute" and "if second < 10, set variable second to join 0 and second". Scratch auto sets the time to a 24 hour clock, so to program in a 12 hour clock, I made it so that if the hour was 12 or greater, it would set the time to 12 hours less than that time (i.e. instead of the hour being 13 it would go back to 1). I also made it so that if the code had to subtract 12 hours, it would set the time to PM and if it didn't subtract 12 hours, it would set the time to AM. It also should make it so that it knows whether it is AM or PM when the hour is 12 (this is a little hard to explain, you can look inside the code to see it - it should be in the date and time checker sprite) To program in the code where it will say that it is "the 1st" of a month rather than saying that it is "the 1" is also a little hard to explain. This code is also in the date and time checker sprite. The display is from , so DO NOT thank me for that code. You can go check out his/her/their project at this link: If you have any questions about the code, feel free to ask in the coments!