Aceguy Posted January 7, 2008 Share Posted January 7, 2008 how do i :- if $i_min_int < 10 then $i_min_int = '0'& $i_min_int EndIf cant figure out how to add the '0' to 1 to make 01. prolly something to do with (string) please help [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Aceguy Posted January 7, 2008 Author Share Posted January 7, 2008 its ok, it worked the above DOH [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Xenobiologist Posted January 7, 2008 Share Posted January 7, 2008 Hi, ConsoleWrite(_secToHMS() & @CRLF) Func _secToHMS($i_seconds = 0) If $i_seconds < 0 Then Return -1 Return StringFormat('%.02d:%.02d:%.02d', Mod($i_seconds / 3600, 24), Mod(($i_seconds / 60), 60),Mod($i_seconds, 60)) EndFunc ;==>_secToHMS So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Bowmore Posted January 7, 2008 Share Posted January 7, 2008 its ok, it worked the above DOHYou might also find it useful to have a look at the StringFormat() function For your clock application the following would work $i_min_int = StringFormat("%02i",$i_min_int) "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now