Support > General Discussions
convert epoch time
			Support:
			
			Script BASIC only has a resolution of 1 second. I created a millisecond resolution timer using the SDL_gfx extension module.
		
			Script_test:
			
			how to convert in milliseconds GMTIME*1000?
--- Code:  ---print GMTIME,"\n"
print GMTIME*1000,"\n"
->
1477401476
1.477401e+012
--- End code ---
		
			Support:
			
			Like I said, Script BASIC only has 1 second resolution. The number you're getting back from NOW or GMTIME is seconds past Jan. 1, 1970 00:00 AM. You need to do milliseconds function in an extension module like I did with SDL_gfx or IMPORT it.
		
			Script_test:
			
			Understood, sorry... thanks for your patience. :-[
		
Navigation
[0] Message Index
[*] Previous page
Go to full version