Jump to content
Sign in to follow this  
jw custom

Timer: seconds into time format?

Recommended Posts

I have this timer which is in seconds and i would like to show it in time format like this 00:00:00, hours, minutes and seconds. How do i do this, my head started to spin when i tried calculating it lol :p

3665 seconds -> 01:01:05

How to please? :D

Share this post


Link to post
Share on other sites
The BIS function library contains a more advanced one, where you can pick the formatting yourself:

http://dev-heaven.net/projects/cmb/repository/revisions/master/entry/scripts/A2/unformatted/ca/modules/Functions/strings/fn_timeToString.sqf

place the function library module, and use BIS_fnc_timeToString

Also useful, thanks a lot :cool:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×