Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Clock time zones
- x-veIocity
-
New Scratcher
1 post
Clock time zones
Hi, i'm making clock project witch is here. And i'm having problem: This only shows the american time zone! You can help, so it display all time zone?
- Laphatize
-
Scratcher
41 posts
Clock time zones
So, by default Scratch doesn't offer timezones.
With a little math, I'm sure you can make different variations of the clock for each timezone?
So, say it's 5:00, perhaps in Africa, it's 1:00. We see a 4-hour difference, so simply create a script that will move back the times for the timezone based on one-time zone.
I'd provide you with the code, but I think you will feel more accomplished if you did this yourself.
With a little math, I'm sure you can make different variations of the clock for each timezone?
So, say it's 5:00, perhaps in Africa, it's 1:00. We see a 4-hour difference, so simply create a script that will move back the times for the timezone based on one-time zone.
I'd provide you with the code, but I think you will feel more accomplished if you did this yourself.
- whimsical
-
Scratcher
100+ posts
Clock time zones
Unfortunately, as Laphatize said, timezones aren't available in Scratch. However, you don't need to worry about timezones if you're just making a clock that shows the time.
It doesn't show the American time specifically, but instead it shows the time on the user's computer. (I know from experience because I made my clock project in Hong Kong and moved to the U.S. but it's still accurate)
Therefore, the clock will adjust itself to whatever the user's local time is. There's no need to change anything
(If you want to test it yourself you can change the time on your computer)
It doesn't show the American time specifically, but instead it shows the time on the user's computer. (I know from experience because I made my clock project in Hong Kong and moved to the U.S. but it's still accurate)
Therefore, the clock will adjust itself to whatever the user's local time is. There's no need to change anything

(If you want to test it yourself you can change the time on your computer)
Last edited by whimsical (April 14, 2018 01:00:59)
- GoldyIsland
-
Scratcher
100 posts
Clock time zones
Hi, i'm making clock project witch is here. And i'm having problem: This only shows the american time zone! You can help, so it display all time zone?
set [time v] to ((current [hour v]) - (5))
- -Strife-
-
Scratcher
100+ posts
Clock time zones
The time displays differently depending on where the user is located
- deck26
-
Scratcher
1000+ posts
Clock time zones
@gtoal made a project that works out what time zone the user is in.
- Kung_Fu_Wubby
-
Scratcher
3 posts
Clock time zones
How do you set a clock to show the timezone that the creator of the project is in and only the creators?
- marcelzietek2006
-
Scratcher
500+ posts
Clock time zones
Please do not N E C R O P O S T
and make your own topic…
and make your own topic…
- MapleSyrup911
-
Scratcher
83 posts
Clock time zones
This block goes off GMT time, no matter what your time is, it is great for certain situations since you can use a bit of maths to get any time zone!
(days since 2000)
- xX_Unreal_Cool_Xx
-
Scratcher
100+ posts
Clock time zones
Unfortunately, as Laphatize said, timezones aren't available in Scratch. However, you don't need to worry about timezones if you're just making a clock that shows the time.Then why does the time on Scratch say 2:23 but on my computer it says 1:23????????????
It doesn't show the American time specifically, but instead it shows the time on the user's computer. (I know from experience because I made my clock project in Hong Kong and moved to the U.S. but it's still accurate)
Therefore, the clock will adjust itself to whatever the user's local time is. There's no need to change anything
(If you want to test it yourself you can change the time on your computer)
- samq64
-
Scratcher
1000+ posts
Clock time zones
The
(current [ v])block uses your computer's time, so unless it's a world clock you don't relay need to get time-zone information.
- cwkbenjamin5728
-
Scratcher
33 posts
Clock time zones
Unfortunately, as Laphatize said, timezones aren't available in Scratch. However, you don't need to worry about timezones if you're just making a clock that shows the time.Then why does the time on Scratch say 2:23 but on my computer it says 1:23????????????
It doesn't show the American time specifically, but instead it shows the time on the user's computer. (I know from experience because I made my clock project in Hong Kong and moved to the U.S. but it's still accurate)
Therefore, the clock will adjust itself to whatever the user's local time is. There's no need to change anything
(If you want to test it yourself you can change the time on your computer)
your computer time is probably off from what your time zone is from what I understand scratch uses your current location to find your time zone the uses that to set the time.
- JayBander
-
Scratcher
5 posts
Clock time zones
I made a project named, Current time on your country.
I used a set that had a clock from someone else.
Separated the hands.
And coded them.
Now it is working functionally
Link: https://scratch.mit.edu/projects/1236071186/
I used a set that had a clock from someone else.
Separated the hands.
And coded them.
Now it is working functionally
Link: https://scratch.mit.edu/projects/1236071186/
- Discussion Forums
- » Help with Scripts
-
» Clock time zones

