Discuss Scratch

alanturing
Scratcher
4 posts

ScratchDays time zone

To me it appears that ScratchDays give a value in timezone UTC+1.

Is this the same for everyone?

I understand that it doesn't actually matter which timezone the result is in as long as it is the same for everyone.

But, why UTC+1? There are a number of more logical timezones, e.g. UTC, local time at MIT, EST…

—————————————————————————————————
“Turing machines can perform any computation that can be performed”
Rumanti
Scratcher
1000+ posts

ScratchDays time zone

Hmm…I don't get what are scratch days. Did you get that sense? I don't have any ideas…

:wq
LS97
Scratcher
100+ posts

ScratchDays time zone

alanturing, are you by any chance in CET (UTC+1)? There was some talk about issues with the scratch time block and I understood that it wasn't actually universal but based on computer time.

Retired Scratcher • Aspiring information systems engineer
alanturing
Scratcher
4 posts

ScratchDays time zone

No, as you might gather from the name (alanturing) I'm based in the UK so my local time is currently UTC.

I have tried this on Ubuntu (11.10/12.04) and Windows (XP/7) and still get the same result - but all the PCs were I must admit set to “Europe/London” as their time zone.

Are you saying that “Scratch Days” is actually returning something like “local time + permanent daylight saving/summer time”?

For timestamping cloud variables it's important that one of the times available is a “universal time” rather than a “local time”, so I hope this is on a “to do” list if necessary?

Cheers

—————————————————————————————————
“Turing machines can perform any computation that can be performed”
LS97
Scratcher
100+ posts

ScratchDays time zone

Well, there was a thread about the block's inconsistency but I'm not sure as to whether it's been fixed.
i agree with you about the need for a universal timestamp!

Retired Scratcher • Aspiring information systems engineer
SJRCS_011
Scratcher
55 posts

ScratchDays time zone

LS97
Well, there was a thread about the block's inconsistency but I'm not sure as to whether it's been fixed.
i agree with you about the need for a universal timestamp!
gmt would probably be best, so youcould adjust it for certain time zones easily
alanturing
Scratcher
4 posts

ScratchDays time zone

I finally got the chance to change the timezone on one my PCs - the Ubuntu 12.04 one - I changed it to Auckland, New Zealand for maximum obvious effect - and even after this the Scratch Days value was still UTC+1, so maybe it does do what is intended.

I calculated when day zero was and it turned out to be May 15, 2007 - at which time Daylight Saving/Summer Time would be operating in the UK.

So, I think I can see what happened, this date was decided on as the Scratch birthday and someone decided to start the clock at midnight in the UK assuming that the UK would be at UTC - but due to Daylight Saving/Summer Time the UK was operating at UTC+1 on this date, hence the confusion.

I worked in the satellite telecom industry for a few years and we found that the only way to set a PC clock to UTC and make sure that it stayed at UTC was to tell the PC that it was in the Africa/Casablanca timezone…

Last edited by alanturing (Jan. 10, 2013 15:28:01)


—————————————————————————————————
“Turing machines can perform any computation that can be performed”
Lightnin
Scratcher
1000+ posts

ScratchDays time zone

Mr Turing! I'd thought we'd lost you. It is an honor to have you posting here, and thanks for creating my job!

Anyhow - this is a good glitch to catch, I'll file it, and we should be able to patch it up. Thanks!
johnm
Scratcher
100+ posts

ScratchDays time zone

alanturing
To me it appears that ScratchDays give a value in timezone UTC+1.
Is this the same for everyone?

(I think you're right about the time being off by an hour. Funny, it was correct when I tested it this past summer! :-). Will fix.)

Yes, at any given moment the ScratchDay block reports the same for everyone, no matter where they are or whether their local clocks are on daylight savings or not.

The ScratchDays block reports the elapsed time since the start of May 15, 2007 in UTC (Greenwich Mean Time). Since it is based on UTC, ScratchDays does not change with daylight savings time and it does not depend on what time zone the computer is in. ScratchDays gives you a way to record and compare “universal” times. For example, you might record the times that people ran your Scratch project (in a persistent cloud list), then later create a graph showing visits over time. It doesn't matter if the users who run your project are in the UK or Korea, they all use the same “ScratchDays” clock. If you got enough visitors, you'd probably see a 24 hour cycle in the graph as the “daytime” hours move around the globe.

Incidentally, while the units of ScratchDays are days (duh!), the resolution is seconds, so you can record when something happens to the nearest second. You could create a clock or calendar using the ScratchDays block. Or, if you note the ScratchDays value when the sun is highest in the sky, you could even compute your longitude the same way the early sailors did it.

Last edited by johnm (Jan. 16, 2013 08:59:23)

Socialix
Scratcher
1000+ posts

ScratchDays time zone

bump

socialix - why is there a penguin breaking my window? - signatures are overrated
twogadugary
Scratcher
100+ posts

ScratchDays time zone

Socialix wrote:

bump
not cool, this was like, a normal old topic and stuff.

you've been trolledㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
-gr
Scratcher
1000+ posts

ScratchDays time zone

Socialix wrote:

bump

twogadugary wrote:

not cool, this was like, a normal old topic and stuff.




-gr: forumer | scratcher | professional exister

1800+ forum posts / 4+ years on Scratch

me on postpercent / me on youtube / my retro-style website
highlight this text and shift+down arrow to see the rest of my signature





Terms of Use wrote:

4.4 You may only submit user-generated projects that were created with (1) the Scratch website editor or (2) an unmodified copy of the Scratch editor compiled from the source code described in Section 5.3. You may not upload any projects that were created, by you or by anyone else, with a modified version of the Scratch editor.
oh shoot well i broke that rule (i use turbowarp sometimes)
Socialix
Scratcher
1000+ posts

ScratchDays time zone

twogadugary wrote:

Socialix wrote:

bump
not cool, this was like, a normal old topic and stuff.
but i want scratchdays back

socialix - why is there a penguin breaking my window? - signatures are overrated
SomeoneOnThelnternet
Scratcher
1000+ posts

ScratchDays time zone

Socialix wrote:

bump
dOn'T nEcRoPoSt PlEaSe D:

Sorry, you have to wait 60 seconds between posts.

male | he/him or they/them | forumer (obviously) | PST | 2000+ posts | between 5 and 100 years old

Technoblade neva dies.

LINKS:

profile | 2000th post | scratching the surface six | more coming soon…

comment “bongis” on skadoodly's profile please

Powered by DjangoBB