Discuss Scratch
- cwkethan1508
-
Scratcher
100+ posts
Days until ____ block
There is this block that exists which is the days since 2000
And other people suggested a days since ____ block.
However, I haven't seen anyone suggest a days until block.
Benefits:
Countdown to _______!
I used SD 2015 in this example. There is workarounds, but I want it easier for begginers to try.
The block:
(If you set the time to 0, it will report only the whole number
And other people suggested a days since ____ block.
However, I haven't seen anyone suggest a days until block.
Benefits:
Countdown to _______!
I used SD 2015 in this example. There is workarounds, but I want it easier for begginers to try.
The block:
(If you set the time to 0, it will report only the whole number
<days until (May v) - (9 v) - (2015) - (0 v):(0 v) (PM v) :: sensing>
Last edited by cwkethan1508 (May 26, 2015 23:46:58)
- georgeskey
-
Scratcher
100+ posts
Days until ____ block
That might be nice, so support, but one question: What if it is after the date posted? I would suggest something like this, since it would also count days from:
<time until (May v) - (9 v) - (2015) - (7 v):(47 v) (PM v) :: sensing>PS. Just learned how to make blocks look like what I want them to look like in this topic: https://scratch.mit.edu/discuss/topic/55586/
// (This uses drop down lists so that you can't make impossible date\times)
Last edited by georgeskey (May 11, 2015 02:56:13)
- cwkethan1508
-
Scratcher
100+ posts
Days until ____ block
That might be nice, so support, but one question: What if it is after the date posted? I would suggest something like this, since it would also count days from:Nice<time until (May v) - (9 v) - (2015) - (7 v):(47 v) (PM v) :: sensing>PS. Just learned how to make blocks look like what I want them to look like in this topic: https://scratch.mit.edu/discuss/topic/55586/
// (This uses drop down lists so that you can't make impossible date\times)
- cwkethan1508
-
Scratcher
100+ posts
Days until ____ block
That might be nice, so support, but one question: What if it is after the date posted? I would suggest something like this, since it would also count days from:It will go negative, like if I write Sunday May 9, it will report -1<time until (May v) - (9 v) - (2015) - (7 v):(47 v) (PM v) :: sensing>PS. Just learned how to make blocks look like what I want them to look like in this topic: https://scratch.mit.edu/discuss/topic/55586/
// (This uses drop down lists so that you can't make impossible date\times)
- stickfiregames
-
Scratcher
1000+ posts
Days until ____ block
Support. The way you have done it still allows impossible times though, so something would have to be done about that. Also, if it has time (which isn't really needed) it should be 24 hours, because it will have one less input and be easier to work with.
- TheHockeyist
-
Scratcher
1000+ posts
Days until ____ block
No support. Just use
((days between this date and 2000) - (days since 2000))
- cwkethan1508
-
Scratcher
100+ posts
Days until ____ block
No support. Just useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345((days between this date and 2000) - (days since 2000))
- stickfiregames
-
Scratcher
1000+ posts
Days until ____ block
If you only want the whole number of days, useNo support. Just useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345((days between this date and 2000) - (days since 2000))
([floor v] of (days since 2000))
- Prinseskat
-
Scratcher
1000+ posts
Days until ____ block
Dates are written differently throughout different countries - some day/month/year, some month/day/year, etc. Unless it's easy to tell which is which:
Additionally, people could still make impossible dates with a dropdown in - the 31st of Feburary doesn't work. Unless 31st Feburary = 3rd March or it rounds down to the highest date for the month, but then it has to include leap years…
As this could get too complex and there is already a viable workaround, I don't support.
([days v] until day:[12th v] month:[May v] year:[2015 v]::sensingit could cause a lot of confusion, and as Scratch is based in America we'll probably all have to use month/day/year which makes zero sense.
Additionally, people could still make impossible dates with a dropdown in - the 31st of Feburary doesn't work. Unless 31st Feburary = 3rd March or it rounds down to the highest date for the month, but then it has to include leap years…
As this could get too complex and there is already a viable workaround, I don't support.
- stickfiregames
-
Scratcher
1000+ posts
Days until ____ block
Dates are written differently throughout different countries - some day/month/year, some month/day/year, etc. Unless it's easy to tell which is which:I would prefer it to have number inputs, that way you could drop reporters into the slots.([days v] until day:[12th v] month:[May v] year:[2015 v]::sensingit could cause a lot of confusion, and as Scratch is based in America we'll probably all have to use month/day/year which makes zero sense.
Additionally, people could still make impossible dates with a dropdown in - the 31st of Feburary doesn't work. Unless 31st Feburary = 3rd March or it rounds down to the highest date for the month, but then it has to include leap years…
As this could get too complex and there is already a viable workaround, I don't support.
For impossible dates, it would probably either roll over or cap them, but as long as it was consistent it wouldn't matter too much.
Labelling the inputs is a good idea - I think it should be year-month-day since that is the international standard.
- DaSpudLord
-
Scratcher
1000+ posts
Days until ____ block
You can useNo support. Just useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345((days between this date and 2000) - (days since 2000))
(round ((days between this date and 2000) - (days since 2000)))
- cwkethan1508
-
Scratcher
100+ posts
Days until ____ block
I want this to make it easier, with NO WORKAROUNDS. Also, what if someone is too lazy to calculate?
- cwkethan1508
-
Scratcher
100+ posts
Days until ____ block
Dates are written differently throughout different countries - some day/month/year, some month/day/year, etc. Unless it's easy to tell which is which:The dates you can choose depends on the Month.([days v] until day:[12th v] month:[May v] year:[2015 v]::sensingit could cause a lot of confusion, and as Scratch is based in America we'll probably all have to use month/day/year which makes zero sense.
Additionally, people could still make impossible dates with a dropdown in - the 31st of Feburary doesn't work. Unless 31st Feburary = 3rd March or it rounds down to the highest date for the month, but then it has to include leap years…
As this could get too complex and there is already a viable workaround, I don't support.
Same with this blocks
(current [date v])That talks about dates. So, its like the same confusion for people out of america
- Prinseskat
-
Scratcher
1000+ posts
Days until ____ block
The dates you can choose depends on the Month.Current date seems to give you the nth number of the month. I don't know about dropdowns changing - if you were able to drop a variable in (or force one in with the JSON code) a slot, you could still make an impossible date.
Same with this blocks(current [date v])That talks about dates. So, its like the same confusion for people out of america
I would prefer it to have number inputs, that way you could drop reporters into the slots.Some dropdowns you can insert variables in, and some you can type a number in. I suppose some workaround for impossible dates would be good them, as no matter what you can still get one.
For impossible dates, it would probably either roll over or cap them, but as long as it was consistent it wouldn't matter too much.
Labelling the inputs is a good idea - I think it should be year-month-day since that is the international standard.
I want this to make it easier, with NO WORKAROUNDS. Also, what if someone is too lazy to calculate?“I'm too lazy” is not an excuse for a new block to be made instead of using a workaround.
- CatsUnited
-
Scratcher
1000+ posts
Days until ____ block
Using that workaround will cause it to go to the next day at 12:00pm.You can useNo support. Just useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345((days between this date and 2000) - (days since 2000))(round ((days between this date and 2000) - (days since 2000)))
([floor v] of (9))would be a better idea.
Last edited by CatsUnited (May 13, 2015 11:09:37)
- ev3coolexit987654
-
Scratcher
1000+ posts
Days until ____ block
+1
Edit: -1, no support.
Edit: -1, no support.
Last edited by ev3coolexit987654 (Aug. 14, 2015 21:08:26)











