convert timer number to time format?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

convert timer number to time format?

#1 Post by Kia »

I wonder: does renpy have any function to convert amount of "seconds" to time format like hh/mm/ss or I should start writing one?

User avatar
fluxus
Regular
Posts: 133
Joined: Thu Jun 19, 2014 8:06 am
Projects: Animal Anaesthesia (a teaching game)
Contact:

Re: convert timer number to time format?

#2 Post by fluxus »

I don't think so, but Python does. That, and so much more.
http://www.tutorialspoint.com/python/py ... e_time.htm

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: convert timer number to time format?

#3 Post by Kia »

thanks
that did the trick. it took a while but I finally got it to work ^_^

Post Reply

Who is online

Users browsing this forum: apocolocyntose, Bing [Bot]