Answers for "unity string format time"

C#
1

unity string format time

public string FormatTime( float time )
{
int minutes = (int) time / 60000 ;
int seconds = (int) time / 1000 - 60 * minutes;
int milliseconds = (int) time - minutes * 60000 - 1000 * seconds;
return string. Format("{0:00}:{1:00}:{2:000}", minutes, seconds, milliseconds );
}
Posted by: Guest on May-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language