Discuss Scratch

little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

Simple. The
 (current [minute v]) 
should have
 (current [season v]) 
. If there is a reason this shouldn't be there, please tell me.

I know you could do some really long scripts for this, but this would just be easier.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.

Last edited by TheHockeyist (Oct. 19, 2014 00:54:35)

little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.
Well, the
 (current [minute v]) 
is different around the world, and it still works.
And it would most likely only use summer, winter, spring and autumn.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

little_kitten wrote:

TheHockeyist wrote:

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.
Well, the
 (current [minute v]) 
is different around the world, and it still works.
And it would most likely only use summer, winter, spring and autumn.

That's because it accounts for your computer's time. And what's the name of the season? Autumn or fall? (I prefer autumn.)
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

It can be called either.
It's most likely can be done.
stickfiregames
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

little_kitten wrote:

TheHockeyist wrote:

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.
Well, the
 (current [minute v]) 
is different around the world, and it still works.
And it would most likely only use summer, winter, spring and autumn.

That's because it accounts for your computer's time. And what's the name of the season? Autumn or fall? (I prefer autumn.)
Probably the seasons would be called
1
2
3
4
since that is how the
(current [day of week v])
block works.
But no support anyway because I don't see how it would be useful.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

stickfiregames wrote:

TheHockeyist wrote:

little_kitten wrote:

TheHockeyist wrote:

(current [season v])

Which hemisphere? (Our winter is their summer!)

Also, there's also a hunting season and a hockey season and a monsoon season and a Christmas season and a hurricane season… *sigh*.
Well, the
 (current [minute v]) 
is different around the world, and it still works.
And it would most likely only use summer, winter, spring and autumn.

That's because it accounts for your computer's time. And what's the name of the season? Autumn or fall? (I prefer autumn.)
Probably the seasons would be called
1
2
3
4
since that is how the
(current [day of week v])
block works.
But no support anyway because I don't see how it would be useful.

Yeah… I also hate how Sunday is 1. Monday should be 1!
little_kitten
Scratcher
500+ posts

(current [minute v]) Should have Season

stickfiregames wrote:

But no support anyway because I don't see how it would be useful.
Maybe you're making a game, and if it's fall (or autumn) you want a brown leaf to fall off a tree, or in winter you want it to snow…
theonlygusti
Scratcher
1000+ posts

(current [minute v]) Should have Season

Support!

It should report the season for the current hemisphere, and report a number to avoid autumn/fall confusion. BTW, it's autumn.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

theonlygusti wrote:

Support!

It should report the season for the current hemisphere, and report a number to avoid autumn/fall confusion. BTW, it's autumn.

How would it detect what hemisphere you're in? Your IP?
theonlygusti
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

theonlygusti wrote:

Support!

It should report the season for the current hemisphere, and report a number to avoid autumn/fall confusion. BTW, it's autumn.

How would it detect what hemisphere you're in? Your IP?

When you create a Scratch Account, you enter your location. I can tell that you live in the US.

If the user has no location entered, use HTML5's geoLocation API and getCurrentPosition() method. Go here: http://jsfiddle.net/hcu2fbdq/2/ and it will find out exactly where you are.

If they do not allow access to current position, assume Northern Hemisphere.

Last edited by theonlygusti (Oct. 19, 2014 17:34:24)

TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

theonlygusti wrote:

TheHockeyist wrote:

theonlygusti wrote:

Support!

It should report the season for the current hemisphere, and report a number to avoid autumn/fall confusion. BTW, it's autumn.

How would it detect what hemisphere you're in? Your IP?

When you create a Scratch Account, you enter your location. I can tell that you live in the US.

If the user has no location entered, use HTML5's geoLocation API and getCurrentPosition() method.

If they do not allow access to current position, assume Northern Hemisphere.

What about countries lying on the equator, like Indonesia?
theonlygusti
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

theonlygusti wrote:

TheHockeyist wrote:

theonlygusti wrote:

Support!

It should report the season for the current hemisphere, and report a number to avoid autumn/fall confusion. BTW, it's autumn.

How would it detect what hemisphere you're in? Your IP?

When you create a Scratch Account, you enter your location. I can tell that you live in the US.

If the user has no location entered, use HTML5's geoLocation API and getCurrentPosition() method.

If they do not allow access to current position, assume Northern Hemisphere.

What about countries lying on the equator, like Indonesia?

theonlygusti wrote:

use HTML5's geoLocation API and getCurrentPosition() method.
http://jsfiddle.net/hcu2fbdq/2/

Last edited by theonlygusti (Oct. 19, 2014 17:34:06)

TimothyLawyer
Scratcher
1000+ posts

(current [minute v]) Should have Season

(current [month v])
permits calculation of the season. Ask for hemisphere for global scope.
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

TimothyLawyer wrote:

(current [month v])
permits calculation of the season. Ask for hemisphere for global scope.

Except that the equinoxes and solstices don't fall on the beginning of the month.
TimothyLawyer
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

Except that the equinoxes and solstices don't fall on the beginning of the month.
So
(current [date v])
?
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

TimothyLawyer wrote:

TheHockeyist wrote:

Except that the equinoxes and solstices don't fall on the beginning of the month.
So
(current [date v])
?
TimothyLawyer
Scratcher
1000+ posts

(current [minute v]) Should have Season

to calculate the division
TheHockeyist
Scratcher
1000+ posts

(current [minute v]) Should have Season

TimothyLawyer wrote:

to calculate the division
Oh…? *confused*
theonlygusti
Scratcher
1000+ posts

(current [minute v]) Should have Season

TheHockeyist wrote:

TimothyLawyer wrote:

to calculate the division
Oh…? *confused*
As per TheHockeyist … *confused*

Powered by DjangoBB