Hey guys, i have 2 questions to you, maybe someone can help me out with this.
1) I need reversed time() function, which would change "14:30" (mm:ss) into sec/ms
2) Is it possible to make something like this?
/Imba
Hey guys, i have 2 questions to you, maybe someone can help me out with this.
1) I need reversed time() function, which would change "14:30" (mm:ss) into sec/ms
2) Is it possible to make something like this?
/Imba
Do you get the time as a string? If so, you can use string.explode on the ":" to get each one separately.
Then simply hours * 60 * 60, minutes * 60, and seconds as they are and sum is total amount of seconds. Just * 1000 for milliseconds.
If I understood you wrong, please explain further.
Last edited by Colandus; 01-05-2014 at 10:13 PM.
Regards,
Colandus
1) You can use tosec(), from Lucas' lib.
2) No, it's not.
tosec, i was searching for something with time in library :P Thanks!