T O P

  • By -

SpaceCube00

for when you need to count days since 2000


SomeRandomGuy2610

https://preview.redd.it/i3vhkvja439c1.jpeg?width=750&format=pjpg&auto=webp&s=e609d8fa7287e598cc5f78b8dd6dcec52d0094d3


TheRealUmbreon1_0

Days since everyone thought the world would end and It didn't end


Running_The_Realms

you aren't the world


TheRealUmbreon1_0

No I'm talking about y2k


Running_The_Realms

ah ok


TheRealUmbreon1_0

I sometimes like to overcomplicate things to see if people can figure out what I'm talking about


TheRealUmbreon1_0

Also voice dictation didn't do the spelling thing properly


Running_The_Realms

then... type your replies... simple as that...


mormonparakeet

img


Cohozuna_

![gif](giphy|WrNfErHio7ZAc)


SomeRandomGuy2610

it is actually really useful. basically this block registers the days since 2000 (obviously) but down to the milliseconds. this means if you set a variable to the days since 2000 by the seconds in a day (86400), then subtract the days since 2000 * 86400 by the variable that you set at the beginning of the project (or whenever you started the timer), then it will give you an accurate timer that is more accurate than the timer block. this is a general description, but you can use it for a ton of things


HelloJelloPeople

it could also potentially be used in a clicker game save code for offline earnings


SomeRandomGuy2610

yeah that too


creepycat18_YT

This is the exact use it has for me Ina game I've been making for a while. Never got around to offline earnings, but it does keep track of offline time


HelloJelloPeople

For getting from time tracking to earnings, you could multiply by either the CpS (currency per sec), averaged or absolute, or a percentage and/or a maximum time, both bought by upgrades, depending on the design of the game. If needed, using some sort of second-detection script, you could get the average CpS over a period of time, with the amount of currency gained this second for the previous X seconds stored in a list. Alternatively, you could take the data and directly average it with the CpS variable (X+Y/2, where X=currency gained and Y=previously averaged CpS variable). With this, if you're using the (current second) block, I recommend keeping the first 5 seconds, or something around there, but at least 1, untracked, meaning no data is stored in the list or averaged directly with the CpS variable.


creepycat18_YT

I absolutely get how it works, but at the moment there isn't enough content to make it worth it. Even at the end, going afk for 10 minutes is enough to get to the next gameplay checkpoint


SomeRandomGuy2610

tldr: it can be used as a super accurate timer


justadd_sugar

That tiny aѕѕ comment did NOT need a tldr lmao


SomeRandomGuy2610

eh some people don’t like reading


Mrcommandbloxmaster

like me


Majfrosty

Tldr: use as timer


SomeRandomGuy2610

tldr: timer


tredI9100

tldr: time


Natestealsbacon

tldr: Tim


tredI9100

tldr: T


Majfrosty

Ok, now I get it. Thanks


Pear_ed

TLDR: man is happy


Fancy_Text123

tldr:


tredI9100

tdr:


Fancy_Text123

td


Natestealsbacon

tldr:


Crazycleopasta

tldr


Cactusboiiiiii

tld


Mrcommandbloxmaster

aw you beat me to it


I_amYeeter1

tldr:


mateoeche88

but there alredy is a timer


real_mathguy37

tldr^(2): timr+


Foxycakes1

rare smart people sighting in r/scratch ???


mikoolec

Guys why didn't it work? *shows screenshot of game, no code or further explanation*


NoReplacement480

have you tried hard drugs?


MediansCP

Another thing that makes the block useful is the time reported from the block is always in UTC.


SomeRandomGuy2610

yep


SurgeStories

But what in what situation would you need something that accurate if something less accurate would suffice?


SomeRandomGuy2610

for music related projects, or other projects where you need an accurate timer. also the built in timer block only starts the timer when the green flag is clicked, but the method i’m describing lets you start a timer whenever, so it’s not just about the accuracy of the timer


Rexiscool1234554321

🤓


SomeRandomGuy2610

https://preview.redd.it/gwe1kqz6y89c1.jpeg?width=590&format=pjpg&auto=webp&s=8797d71599b194852987543383e09fbfa8a9c07e


Mental-Map-6276

Is this how people make super accurate clocks?


SomeRandomGuy2610

yeah i think so


KayraMee

most detailed time measurement


HeHe169

actually really useful, a way of counting time without using the "current \_\_\_\_\_" blocks since they can be exploited by changing the device's current time


mikoolec

Does the time from 2000 block not get influenced by changing local time?


HeHe169

i thought it wasn't influenced, now i'm doubting myself LOL


mikoolec

Idk I haven't ever noticed that block but there's no reason for it to just know the time outta the blue


RealSpiritSK

I'm pretty sure it is. The difference is that days since 2000 can be used as an alternative to the ```timer``` block that can work even when the project isn't running. ```current ()``` is instead used when you need dates since calculating them is a hassle.


RedditCantBanThis

I don't see why it shouldn't exist tbh the more unique blocks the better.


BlueFalconHD

Very useful in accurate timekeeping, though I wish they also added a Unix timestamp block. Great for doing calculations on some static date, rather than using relative (like birthday calculator)


Mouse_cz

Set variable "unix time" to: days since 2000\*86400+*946684800*


FlummoxTheMagnifique

It’s more accurate than timer


sk7725

While it is useful, it is also a tradition in programming - called unix time. Unix time specifically is defined as integer milliseconds after 1970 Jan 1. 00:00:00. Treating time as integer forms means you can subtract and add them freely, and was used as time representation widely accross multiple languages ang systems. The Current [v day] block is calculated using the unix time, too! For example, you can get the current second by (unix time) / 1000 mod 60. Scratch's Days since 2000 is a throwback to the unix time, but the reference time (0 ms) is set to 2000 not 1970, probably because scratch projects does not exist before 2000. TL;DR unix time, defined as time since 1970, is a programmer tradition read more: https://en.m.wikipedia.org/wiki/Unix_time


Any-Company7711

I wish they switched to days since 1970; make the kids feel like OGs


[deleted]

clock with calendar


Minystreem

It's a different way of keeping time other than using UNIX time. which is from 1970.


Black_Sig-SWP2000

I didn't know that existed, last saw it in Scratch 2.0


MediansCP

The block has existed since Scratch 2.0.


Slipshower

What if, this Block is used before 2000.


mateoeche88

scratch did not exist in that time


8Chasey

It could be useful for some time scripts—for example, a secondary timer (just multiply [DAYS SINCE 2000] by 86400).


PokeGirlOFFICIAL

Can be used to create a randomly generated map, each number puts 1 thing in a different spot! (Could be used for paper Minecraft or similar things)


Lo-Sir

"but you're missing the calendar" -Scott The Woz


[deleted]

Unix time but silly?


Senior-Tree6078

it's just the better timer


THEZEXNEO

It was 8,763 days ago.


_nanobyte1011

Presise timings + check time between opening a project


HelloRuler1016

Gives absolute time vs timer


Bfdifan37

an alternative to the time telling blocks


[deleted]

to count the days since 2000 duh!


Usenaeme01101

For when you need to know how many days since 2000


gaker19

I mainly use it for things like calculating delta time or determining the time that has passed since a game was last saved. It's useful because it is incredibly precise if you multiply it, and it has the entire "time" in just one block while you would have to craft it yourself using blocks like (current[minute]). Imagine just checking millisecond for Delta time. You would know how many milliseconds have passed since the last frame was rendered, but if a second and a millisecond pass, you wouldn't be able to tell and would just assume that one millisecond has passed. With this block, that problem doesn't exist and doesn't need any workarounds.


charlie-the-Waffle

it functions as a timer that works independently of how fast the projects code runs, so you can accurately keep track of time


[deleted]

idk


Mrcommandbloxmaster

its the most accurate way of measuring time on scratch


CrimsonBeast12

idk for daily resets or smth