Discuss Scratch

amoni7978934
Scratcher
31 posts

Days since 2000

I've seen a bunch of people using days since 2000 in a lot of things, like AYS engines as an example. How is this block actually useful in projects?

I've been wondering this for a while.
-gr
Scratcher
1000+ posts

Days since 2000

It can tell you the number of days since the year 2000.
astro-peach
Scratcher
100+ posts

Days since 2000

There are countdown projects, usually made for the New Year. That is one use for the
(days since 2000)
block.
RethinkingVoxels
Scratcher
1000+ posts

Days since 2000

It can tell the exact number of days (to the milliseconds) since 2000. It's the most accurate time, running off servers and not the client, which can be used as a accurate measurement of time. It can also be used for FPS counters
amoni7978934
Scratcher
31 posts

Days since 2000

RethinkingVoxels wrote:

It can tell the exact number of days (to the milliseconds) since 2000. It's the most accurate time, running off servers and not the client, which can be used as a accurate measurement of time. It can also be used for FPS counters
How can it be used for FPS?
BigNate469
Scratcher
1000+ posts

Days since 2000

amoni7978934 wrote:

RethinkingVoxels wrote:

It can tell the exact number of days (to the milliseconds) since 2000. It's the most accurate time, running off servers and not the client, which can be used as a accurate measurement of time. It can also be used for FPS counters
How can it be used for FPS?
Frames per second is a measure of how many times a frame is drawn in a second. Since the
(timer)
block lags with the project, the days since 2000 is the most accurate way of telling time. So, bumping up the frame count every time a new frame is drawn (you can make a project not draw new frames by not using certain blocks, such as the wait () seconds block, that re-render everything, and by using custom blocks set to run without screen refresh), and only updating the frame at a certain point in time, or detecting when it's updated (not sure if that's even possible un Scratch, but I'm not not considering it), and comparing what the days since 2000 says since the last time you did it can yield, with some math, a framerate.

Check out the Scratch Wiki article on framerate for more info.

Last edited by BigNate469 (June 7, 2024 16:51:07)

ajskateboarder
Scratcher
1000+ posts

Days since 2000

amoni7978934 wrote:

I've seen a bunch of people using days since 2000 in a lot of things, like AYS engines as an example. How is this block actually useful in projects?
Unlike the (current [whatever]) block which uses the timezone of the user running the project, the days since 2000 block returns the days using the GMT/UTC timezone

Last edited by ajskateboarder (June 7, 2024 17:50:54)

BigNate469
Scratcher
1000+ posts

Days since 2000

ajskateboarder wrote:

amoni7978934 wrote:

I've seen a bunch of people using days since 2000 in a lot of things, like AYS engines as an example. How is this block actually useful in projects?
Unlike the (current [whatever]) block which uses the timezone of the user running the project, the days since 2000 block returns the days using the GMT/UTC timezone
I honestly forgot about that…
But that allows one to detect your timezones by comparing it to the
(current [ v])
block.
WallydogChoppychop
Scratcher
500+ posts

Days since 2000

It can also be used to sync a moving platform in a multiplayer game.

Powered by DjangoBB