string a = "8:25";
intn = 2;//multiply by
string[] time = a.Split(':');
stringoutput = string.Empty;
intc = (int.Parse(time[0]) * 60 + int.Parse(time[1])) * n;
if(c % 60 == 0)
{ output = (c / 60).ToString(); }
else
output = (c / 60).ToString() + ":" + (c % 60).ToString();
0 comments:
Post a Comment