m (Never remember. >_>)
m ("s" in "scratch" is capitalized.)
 
(32 intermediate revisions by 21 users not shown)
Line 1: Line 1:
{{expand}}
 
 
{{obsolete feature|Days Since 2000 (block)}}
 
{{obsolete feature|Days Since 2000 (block)}}
 
{{redirect|Scratch Days|the annual event|Scratch Day}}
 
{{redirect|Scratch Days|the annual event|Scratch Day}}
{{Block
+
{{block
|image      =  File:2.0 Scratch Days.png
+
|image      =  (Scratch days :: sensing)
 +
|sb        =  2.0
 
|name      =  Scratch Days
 
|name      =  Scratch Days
 
|category  = [[Sensing Blocks|Sensing]]
 
|category  = [[Sensing Blocks|Sensing]]
 
|type      = [[Reporter Block|Reporter]]
 
|type      = [[Reporter Block|Reporter]]
|added      = 2.0 alpha
+
|added      = 2.0 beta
|removed    = 2.0 beta
+
|removed    = 2.0 release
 
}}
 
}}
The '''Scratch days''' block was a [[Sensing Blocks|Sensing block]] and a [[Reporter Blocks|reporter block]]. It reported the number of days since the start of Scratch (May 15, 2007).
+
The '''Scratch Days''' [[Blocks|block]] was a [[Sensing Blocks|Sensing block]] and a [[Reporter Blocks|reporter block]]. It reported the number of days since the start of Scratch (May 15, 2007). It was available in the beta of [[Scratch 2.0]] but did not make the initial release,{{cn|date=February 2018}} as other, more variatical time blocks took its place.
  
This block was notable for being the only one with a capital letter in the [[Block Palette|block palette]].
+
This block was notable for being the only one in the [[Block Palette|block palette]] starting with a capital letter.{{cn|date=February 2018}}
  
 
==Example Uses==
 
==Example Uses==
This block can be used in some of the following ways:
+
This block could be used in some of the following ways:
*Making a countdown
+
* Making a countdown/timer
*Making something unavailable before or after a certain date
+
* Making something unavailable before or after a certain date
 +
* Creating a clock
 +
 
 +
==Workaround==
 +
{{main|List of Block Workarounds}}
 +
This block can be simulated with the following code:
 +
<scratchblocks>((days since 2000) - (2692))</scratchblocks>
 +
This is because May 15, 2007 is 2692 days after January 1, 2000.
 +
 
 +
The "current day" block can also be used to get around it.
  
 
==Removal==
 
==Removal==
This block has been replaced with the [[Days Since 2000]] block.
+
This block has been replaced with the [[Days Since 2000 (block)|Days Since 2000]] block.
 +
 
 +
{{Sensing Blocks}}{{Removed Blocks}}
  
{{Sensing Blocks}}
 
 
[[Category:Sensing Blocks]]
 
[[Category:Sensing Blocks]]
 +
[[ja:Scratch開始からの日数 (ブロック)]]

Latest revision as of 17:06, 11 December 2020

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. For information on the feature that replaced this one, see Days Since 2000 (block).
"Scratch Days" redirects here. For the annual event, see Scratch Day.
Scratch Days
(Scratch days :: sensing)
Category Sensing
Type Reporter
Introduced in 2.0 beta
Removed in 2.0 release

The Scratch Days block was a Sensing block and a reporter block. It reported the number of days since the start of Scratch (May 15, 2007). It was available in the beta of Scratch 2.0 but did not make the initial release,[citation needed] as other, more variatical time blocks took its place.

This block was notable for being the only one in the block palette starting with a capital letter.[citation needed]

Example Uses

This block could be used in some of the following ways:

  • Making a countdown/timer
  • Making something unavailable before or after a certain date
  • Creating a clock

Workaround

Main article: List of Block Workarounds

This block can be simulated with the following code:

((days since 2000) - (2692))

This is because May 15, 2007 is 2692 days after January 1, 2000.

The "current day" block can also be used to get around it.

Removal

This block has been replaced with the Days Since 2000 block.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.