Discuss Scratch
- Discussion Forums
- » Suggestions
- » Replacing the <days to 2000> block
- hoole001
-
1000+ posts
Replacing the <days to 2000> block
No offense, but seriously?What she/he said. Support!

- hoole001
-
1000+ posts
Replacing the <days to 2000> block
Support! It would make things so much easier!
- PullJosh
-
1000+ posts
Replacing the <days to 2000> block
Nah. Just make a run through of all the projects using the days since 2000 block, and replace it with the new block, filled in the with the date 2000. (That, of course, would be done automatically using a script during site downtime) One problem. All the projects using the block would be ruined. I've seen quite a few.
- AonymousGuy
-
1000+ posts
Replacing the <days to 2000> block
http://scratch.mit.edu/discuss/topic/217/?page=1#post-1832
Interesting directions…
The main intended purpose for the “days since 2000” or “Scratch days” block is to have an arbitrary date as a timestamp (so that you can record and compare how recently someone has interacted with a project).
Being able to choose day, month, and year makes it sound more like a block for calculating time rather than remembering time.
Note: It was originally going to be called “timestamp” (like in some programming languages) but that sounded in Scratch like it would stamp the time on the project rather than returning a number.
- djdolphin
-
1000+ posts
Replacing the <days to 2000> block
Or just use the current approach for modernizing old blocks, and replace the old ones with the new ones when the project loads, instead of searching through millions of projects to find a single block.Nah. Just make a run through of all the projects using the days since 2000 block, and replace it with the new block, filled in the with the date 2000. (That, of course, would be done automatically using a script during site downtime) One problem. All the projects using the block would be ruined. I've seen quite a few.

Last edited by djdolphin (May 29, 2014 01:40:57)
- ThatExplosivePigeon
-
100+ posts
Replacing the <days to 2000> block
Support. For those who want to keep the original block, there could be a seperate block, perserving the functionality of the original.
- the2000
-
1000+ posts
Replacing the <days to 2000> block
Why? Days since 2000 is a pretty easy concept to grasp, though perhaps the name could be a little more clear. It's a pretty easy way to account for the passage of time and it's easy to change the date it's counting form with a little bit of math.
- Basic88
-
1000+ posts
Replacing the <days to 2000> block
No support whatsoever. Days since 2000 is a good way to accurately find the time anywhere in the world.
- Paddle2See
-
1000+ posts
Replacing the <days to 2000> block
Must have gotten merged into another topic.blasphemy.What's a blasphemy. Also, that page is a 403. Reported for
- Greg8128
-
500+ posts
Replacing the <days to 2000> block
The use of the ‘days since 2000’ block is to make your own timers. For example:
set [start-time v] to ((days since 2000) * (86400)) // seconds since 2000Granted, this is more complex than using the builtin timer. However, it is possible to have several timers at once using this technique. Also the builtin timer does not like it when under a second has elapsed for some reason.
repeat until <(((days since 2000) * (86400)) - (start-time) )> (1)> // turn 15 degrees for 1 second
turn cw (15) degrees
end
- SpinningCube
-
100+ posts
Replacing the <days to 2000> block
No support for the replacement of the original block. The new block sounds interesting, maybe it could look like this:
Here's an even more specific block. This is probably too complex for scratch:
([days v] since month[January v]day(1)year(2000)::sensing)
Here's an even more specific block. This is probably too complex for scratch:
([seconds v] since month[January v]day(1)year(2000)hour(0)minute(0)second(0)UTC::sensing)
([seconds v] since month[January v]day(1)year(2000)time(0):(0):(0)UTC::sensing)
- ScratchCatHELLO
-
1000+ posts
Replacing the <days to 2000> block
blasphemy.What's a blasphemy. Also, that page is a 403. Reported for
Merriam-Webster for “blasphemy”:
2 -
irreverence toward something considered sacred or inviolable
Anyway, there's an easy workaround, so I'm not sure about this. Undecided for now.
- azhua0730
-
100+ posts
Replacing the <days to 2000> block
i cannot make the full code, but there are some fragments of it i can identify. Hope it helped!
it will be:
31
28
31
30
31
31
31
30
31
30
31
30
blocks you will need:
define days since (day) (month), (year)set a list “days a month”
forever
if <((current [year v]) mod 4) = [0]> then
change [ ds((()))v] by [1]
end
set [ds((())) v] to ((365) * (((current [year v])) - (year)))
end
it will be:
31
28
31
30
31
31
31
30
31
30
31
30
blocks you will need:
if <<not<((current [year v]) mod 4) = [0]>>
change [ds((()))] by (item ((current [month v]) v) of [days a month v] :: list)
else
if <<(current [month v])=[2]>> then
change [ds((()))] by [29]
end
end
- promixels123
-
87 posts
Replacing the <days to 2000> block
Support! I've almost never seen my self use this block so adding this upgrade will definitely get scratchers to use it more!
- han614698
-
1000+ posts
Replacing the <days to 2000> block
Hello! This topic is a duplicate of this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks! 

- Discussion Forums
- » Suggestions
-
» Replacing the <days to 2000> block