ScratchData LogoScratchData
Back to Studio04040807's profile

Compact date codes, useful for cloud variables

STStudio04040807•Created March 21, 2016
Compact date codes, useful for cloud variables
1
1
5 views
View on Scratch

Instructions

Click the green flag. This project demonstrates a compact way to use 1, 2, 3, 4, or 5-digit numbers to represent dates, in a manner where every combination is used and each represents a unique date. This could be useful in cloud variables to store which day a value was changed on, compactly.

Description

I felt like making this so I did The 1-digit day codes will store a date for 10 days, then they will underflow. The 2-digit day codes will store a date for 100 days, then they will underflow. The 3-digit day codes will store a code for 1000 days (between 2 and 3 years) before underflowing. The 4-digit day codes will store a code for 10000 days (between 26 and 27 years) before underflowing. The 5-digit date codes will store a code for 100000 days (between 272 and 273 years, which is a really long time, it's really super duper long) before underflowing.

Project Details

Project ID102453082
CreatedMarch 21, 2016
Last ModifiedDecember 21, 2019
SharedDecember 21, 2019
Visibilityvisible
CommentsAllowed