Discuss Scratch

hoole001
Scratcher
1000+ posts

Replacing the <days to 2000> block

Blaze349 wrote:

MeDiaMond wrote:

Support!
What she/he said.
No offense, but seriously?
hoole001
Scratcher
1000+ posts

Replacing the <days to 2000> block

Support! It would make things so much easier!
DaveTheGamer80
Scratcher
91 posts

Replacing the <days to 2000> block

I agree with this.
Great Idea!
PullJosh
Scratcher
1000+ posts

Replacing the <days to 2000> block

szogun wrote:

One problem. All the projects using the block would be ruined. I've seen quite a few.
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)
AonymousGuy
Scratcher
1000+ posts

Replacing the <days to 2000> block

AonymousGuy wrote:

http://scratch.mit.edu/discuss/topic/217/?page=1#post-1832

natalie wrote:

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
Scratcher
1000+ posts

Replacing the <days to 2000> block

PullJosh wrote:

szogun wrote:

One problem. All the projects using the block would be ruined. I've seen quite a few.
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)
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.

Last edited by djdolphin (May 29, 2014 01:40:57)

ThatExplosivePigeon
Scratcher
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
Scratcher
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
Scratcher
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.
fdreerf
Scratcher
1000+ posts

Replacing the <days to 2000> block

Reported for blasphemy.
Basic88
Scratcher
1000+ posts

Replacing the <days to 2000> block

fdreerf wrote:

Reported for blasphemy.
What's a blasphemy. Also, that page is a 403.
fdreerf
Scratcher
1000+ posts

Replacing the <days to 2000> block

Basic88 wrote:

fdreerf wrote:

Reported for blasphemy.
What's a blasphemy. Also, that page is a 403.
Aw man. Since there was a reindex every merged topic has been lost forever and now I'll never know which topic it was merged with.
Paddle2See
Scratch Team
1000+ posts

Replacing the <days to 2000> block

Basic88 wrote:

fdreerf wrote:

Reported for blasphemy.
What's a blasphemy. Also, that page is a 403.
Must have gotten merged into another topic.
Greg8128
Scratcher
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 2000
repeat until <(((days since 2000) * (86400)) - (start-time) )> (1)> // turn 15 degrees for 1 second
turn cw (15) degrees
end
Granted, 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.
SpinningCube
Scratcher
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:

([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
Scratcher
1000+ posts

Replacing the <days to 2000> block

Basic88 wrote:

fdreerf wrote:

Reported for blasphemy.
What's a blasphemy. Also, that page is a 403.

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.
boncuk18
Scratcher
1000+ posts

Replacing the <days to 2000> block

Support!
azhua0730
Scratcher
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!
define days since (day) (month), (year)
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
set a list “days a month”
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
Scratcher
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
Scratcher
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!

Powered by DjangoBB