Discuss Scratch

Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?

Have you ever used this block?

(days since 2000)

I've rarely heard of anyone ever using it, so I think this block should be changed to a block more customizable.

What should this block be changed to?

I have an idea that instead of the block being a sensor for ‘days since 2000’ you can change the date.

It would look something like this:

(days since(2000)::sensing)//



This way it would count the number of days since the given date.

Thanks!

-@Thelnvoker

Last edited by Thelnvoker (April 23, 2016 16:42:29)

Abstract-
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

([days v] since year[2000]::sensing

Support for the above block instead of “Years since 2000” The default date should be 2000 though.

Dropdown menue options:

Days
Weeks
Months
Years

And if they put in a future year, like say, 3016, then it would say nothing.

Last edited by Abstract- (May 7, 2016 14:27:12)

jokebookservice1
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Thelnvoker wrote:

Have you ever used this block?

(days since 2000)

I've rarely heard of anyone ever using it, so I think this block should be changed to a block more customizable.

What should this block be changed to?

I have an idea that instead of the block being a sensor for ‘days since 2000’ you can change the date.

It would look something like this:

(days since [enter date])

(Except blue.)

This way it would count the number of days since the given date.

Thanks!

-@Thelnvoker
Yeah. I support, perhaps a dropdown like this might be better for input validation:
(days since (5) of [January v] of the year [])
Just want to point out that the
(days since 2000)
provides it based on UTC, s you can get smebody's timezone by doing this:
set [timeZone v] to ( (((days since 2000) - ([floor v] of (days since 2000))) * (24)) - (current [hour v]) )
which makes the block useful. But yeah, I support

Last edited by jokebookservice1 (May 13, 2016 15:51:20)

Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?



Agreed.

Last edited by Thelnvoker (April 23, 2016 16:44:27)

Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?

Abstract- wrote:

([days v] since year[2000]::sensing

Support for the above block instead of “Years since 2000” The default date should be 2000 though.

Dropdown menue options:

Days
Weeks
Months
Years

Agreed.
Sheep_maker
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Abstract- wrote:

Dropdown menue options:

Days
Weeks
Months
Years
How long is a month? Its length is inconsistent so I don't think it should be a unit of time. Not to mention that an year can be confused as either 365.25 or 365 and 366.

Thelnvoker wrote:

Have you ever used this block?

(days since 2000)

I've rarely heard of anyone ever using it, so I think this block should be changed to a block more customizable.
Yes I have used the block, a lot. It's useful for calculating milliseconds or the time zone, an alternative to the timer (and can't be reset!), syncing everyone's values to the same time, etc.

But support for
(days since(2000)::sensing)//numeric input, default value
assuming that 0 = 1BCE, decimals work as normal, and it gives the days until a given year if the year hasn't occurred yet.
TheCode7
Scratcher
78 posts

Change the 'Days since 2000' Block?

I support! This is a really cool idea!
Techno-CAT
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

TheCode7 wrote:

I support! This is a really cool idea!
Abstract-
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Sheep_maker wrote:

Abstract- wrote:

Dropdown menue options:

Days
Weeks
Months
Years
How long is a month? Its length is inconsistent so I don't think it should be a unit of time. Not to mention that an year can be confused as either 365.25 or 365 and 366.

Thelnvoker wrote:

Have you ever used this block?

(days since 2000)

I've rarely heard of anyone ever using it, so I think this block should be changed to a block more customizable.
Yes I have used the block, a lot. It's useful for calculating milliseconds or the time zone, an alternative to the timer (and can't be reset!), syncing everyone's values to the same time, etc.

But support for
(days since(2000)::sensing)//numeric input, default value
assuming that 0 = 1BCE, decimals work as normal, and it gives the days until a given year if the year hasn't occurred yet.
Oops… okay months can be removed, but I think years would count as 365.
TheAwesomeMaster
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Abstract- wrote:

([days v] since year[2000]::sensing

Support for the above block instead of “Years since 2000” The default date should be 2000 though.

Dropdown menue options:

Days
Weeks
Months
Years
This.
customhacker
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Abstract- wrote:

([days v] since year[2000]::sensing

Support for the above block instead of “Years since 2000” The default date should be 2000 though.

Dropdown menue options:

Days
Weeks
Months
Years

Yes, this block would be more helpful for clocks.
dude341
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Abstract- wrote:

([days v] since year[2000]::sensing

Support for the above block instead of “Years since 2000” The default date should be 2000 though.

Dropdown menue options:

Days
Weeks
Months
Years

And if they put in a future year, like say, 3016, then it would say nothing.
How about:
([days v] [since/until v] year[2000]::sensing

Last edited by dude341 (May 9, 2016 06:23:21)

Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?

dude341 wrote:

Abstract- wrote:

([days v] since year[2000]::sensing

Support for the above block instead of “Years since 2000” The default date should be 2000 though.

Dropdown menue options:

Days
Weeks
Months
Years

And if they put in a future year, like say, 3016, then it would say nothing.
How about:
([days v] [[b]since/until[/b] v] year[2000]::sensing

Support for the text I bolded.
scratchisthebest
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

No support because you can just subtract 365.25 days for every year
Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?

scratchisthebest wrote:

No support because you can just subtract 365.25 days for every year

What's the code to do this?
DaSpudLord
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

Thelnvoker wrote:

scratchisthebest wrote:

No support because you can just subtract 365.25 days for every year

What's the code to do this?
((days since 2000) - ((number of years::grey) * (365.25)))
JonathanSchaffer
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

support for
([days v] since year (2000)::sensing)

Last edited by JonathanSchaffer (May 13, 2016 15:49:29)

Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?

DaSpudLord wrote:

Thelnvoker wrote:

scratchisthebest wrote:

No support because you can just subtract 365.25 days for every year

What's the code to do this?
((days since 2000) - ((number of years::grey) * (365.25)))

Thanks.
jokebookservice1
Scratcher
1000+ posts

Change the 'Days since 2000' Block?

ddk44 wrote:

My browser / operating system: ChromeOS 7978.74.0, Chrome 50.0.2661.103, Flash 21.0 (release 0) hahaha
Please don'e emojispam
Thelnvoker
Scratcher
100+ posts

Change the 'Days since 2000' Block?

ddk44 wrote:

My browser / operating system: ChromeOS 7978.74.0, Chrome 50.0.2661.103, Flash 21.0 (release 0) hahaha
What?

Powered by DjangoBB