Discuss Scratch
- cwkethan1508
-
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
-
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.ezproxyberklee.flo.org/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
-
100+ posts
Days until ____ block
Nice 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.ezproxyberklee.flo.org/discuss/topic/55586/
// (This uses drop down lists so that you can't make impossible date\times)
- cwkethan1508
-
100+ posts
Days until ____ block
It will go negative, like if I write Sunday May 9, it will report -1 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.ezproxyberklee.flo.org/discuss/topic/55586/
// (This uses drop down lists so that you can't make impossible date\times)
- stickfiregames
-
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
-
1000+ posts
Days until ____ block
No support. Just use
((days between this date and 2000) - (days since 2000))
- cwkethan1508
-
100+ posts
Days until ____ block
Days since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345 No support. Just use((days between this date and 2000) - (days since 2000))
- stickfiregames
-
1000+ posts
Days until ____ block
If you only want the whole number of days, useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345 No support. Just use((days between this date and 2000) - (days since 2000))
([floor v] of (days since 2000))
- Prinseskat
-
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
-
1000+ posts
Days until ____ block
I would prefer it to have number inputs, that way you could drop reporters into the slots. 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:([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
-
1000+ posts
Days until ____ block
You can useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345 No support. Just use((days between this date and 2000) - (days since 2000))
(round ((days between this date and 2000) - (days since 2000)))
- cwkethan1508
-
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
-
100+ posts
Days until ____ block
The dates you can choose depends on the Month. 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:([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
-
1000+ posts
Days until ____ block
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. The dates you can choose depends on the Month.
Same with this blocks(current [date v])That talks about dates. So, its like the same confusion for people out of america
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. I would prefer it to have number inputs, that way you could drop reporters into the slots.
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'm too lazy” is not an excuse for a new block to be made instead of using a workaround. I want this to make it easier, with NO WORKAROUNDS. Also, what if someone is too lazy to calculate?
- CatsUnited
-
1000+ posts
Days until ____ block
Using that workaround will cause it to go to the next day at 12:00pm.You can useDays since 2000 gives you stuff like 2435.234 (making up). I want it to be stuff like 23345 No support. Just use((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
-
1000+ posts
Days until ____ block
+1
Edit: -1, no support.
Edit: -1, no support.
Last edited by ev3coolexit987654 (Aug. 14, 2015 21:08:26)