Discuss Scratch

Talhoid
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)

Last edited by Talhoid (Nov. 4, 2020 15:21:15)

help_with_scripts
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

Talhoid wrote:

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)
You can convert minutes to seconds and seconds to minutes using math. There are 60 second in 1 minute, so every 60 seconds is equal to 1 minute. You can make all seconds into minutes, then keep the remainder of the seconds as seconds. You can do the same for hours and minutes. If you would like a project with this, let me know.
Talhoid
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

help_with_scripts wrote:

Talhoid wrote:

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)
You can convert minutes to seconds and seconds to minutes using math. There are 60 second in 1 minute, so every 60 seconds is equal to 1 minute. You can make all seconds into minutes, then keep the remainder of the seconds as seconds. You can do the same for hours and minutes. If you would like a project with this, let me know.
Yes, can you link a project?

Last edited by Talhoid (Nov. 4, 2020 16:06:03)

help_with_scripts
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

H

Talhoid wrote:

help_with_scripts wrote:

Talhoid wrote:

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)
You can convert minutes to seconds and seconds to minutes using math. There are 60 second in 1 minute, so every 60 seconds is equal to 1 minute. You can make all seconds into minutes, then keep the remainder of the seconds as seconds. You can do the same for hours and minutes. If you would like a project with this, let me know.
Yes, can you link a project?
Here, I just made it:
https://scratch.mit.edu/projects/445177770/

Last edited by help_with_scripts (Nov. 4, 2020 16:14:35)

speakableplayz
Scratcher
20 posts

Convert seconds to hh:mm:ss format

could

help_with_scripts wrote:

H

Talhoid wrote:

help_with_scripts wrote:

Talhoid wrote:

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)
You can convert minutes to seconds and seconds to minutes using math. There are 60 second in 1 minute, so every 60 seconds is equal to 1 minute. You can make all seconds into minutes, then keep the remainder of the seconds as seconds. You can do the same for hours and minutes. If you would like a project with this, let me know.
Yes, can you link a project?
Here, I just made it:
https://scratch.mit.edu/projects/445177770/
you make it so its a clock when the game starts instead of typing in the numbers?
help_with_scripts
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

speakableplayz wrote:

could

help_with_scripts wrote:

H

Talhoid wrote:

help_with_scripts wrote:

Talhoid wrote:

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)
You can convert minutes to seconds and seconds to minutes using math. There are 60 second in 1 minute, so every 60 seconds is equal to 1 minute. You can make all seconds into minutes, then keep the remainder of the seconds as seconds. You can do the same for hours and minutes. If you would like a project with this, let me know.
Yes, can you link a project?
Here, I just made it:
https://scratch.mit.edu/projects/445177770/
you make it so its a clock when the game starts instead of typing in the numbers?
Okay, just use timer. I will do that, though good idea.
help_with_scripts
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

speakableplayz wrote:

could

help_with_scripts wrote:

H

Talhoid wrote:

help_with_scripts wrote:

Talhoid wrote:

I need help converting something like 1000 seconds to 00:16:40
Anyone got some scripts to do that?
(I have no way of rewriting this)
You can convert minutes to seconds and seconds to minutes using math. There are 60 second in 1 minute, so every 60 seconds is equal to 1 minute. You can make all seconds into minutes, then keep the remainder of the seconds as seconds. You can do the same for hours and minutes. If you would like a project with this, let me know.
Yes, can you link a project?
Here, I just made it:
https://scratch.mit.edu/projects/445177770/
you make it so its a clock when the game starts instead of typing in the numbers?
I made it count up from 0 using the timer! Just remove the x 10 block. read project instructions for more.
Talhoid
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

Thanks for all the help!
I will keep this topic open so that if you find a better way you can show me.
Happy scratching
Edit: This is for my in progress project: https://scratch.mit.edu/projects/444838105/

Last edited by Talhoid (Nov. 5, 2020 22:50:16)

help_with_scripts
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

Talhoid wrote:

Thanks for all the help!
I will keep this topic open so that if you find a better way you can show me.
Happy scratching
Edit: This is for my in progress project: https://scratch.mit.edu/projects/444838105/
What better way do you want? There are other ways, just tell me what exactly you want and I can do that.
Talhoid
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

I'm not saying that your method is bad. I'm just saying that if there are any better ways other than yours, I would take them.
help_with_scripts
Scratcher
100+ posts

Convert seconds to hh:mm:ss format

Talhoid wrote:

I'm not saying that your method is bad. I'm just saying that if there are any better ways other than yours, I would take them.
You're making me nervous. I made a working way. I can make a better way if you define better. You asked for something that converted seconds to hh mm ss format, and I made a program that did that perfectly. Now you keep asking for extra features and wondering if there are better ways. If you tell me EXACTLY what you want, I can make it, but to my understanding as it is, my project is perfect and could not be better for the task you asked for.
adudethatdiesingames
Scratcher
7 posts

Convert seconds to hh:mm:ss format

Thank you SOOOOO much this helped tons

Powered by DjangoBB