Y ykucuk Well-Known Member Licensed User Longtime User Feb 2, 2014 #1 Hello, how can i convert below c# code to b4a. TimeSpan t = (DateTime.Now - Start)+ TimeSpan.FromSeconds(savedbefore ) ; Console.Writeline (t.TotalSeconds ); lblChronometer.Text = t.ToString(@"dd\.hh\:mm\:ss"); '*** note that savedbefore is timespan also which saved before and get from database
Hello, how can i convert below c# code to b4a. TimeSpan t = (DateTime.Now - Start)+ TimeSpan.FromSeconds(savedbefore ) ; Console.Writeline (t.TotalSeconds ); lblChronometer.Text = t.ToString(@"dd\.hh\:mm\:ss"); '*** note that savedbefore is timespan also which saved before and get from database
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2014 #2 What is Start? What is the purpose of this code? Upvote 0
Y ykucuk Well-Known Member Licensed User Longtime User Feb 2, 2014 #3 start means when user click to button. DateTime Start = DateTime.Now; Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2014 #4 B4X: Dim p As Period = DateUtils.PeriodBetween(DateTime.Now + savedBefore * DateTime.TicksPerSecond, Start) Log(p) Upvote 0
B4X: Dim p As Period = DateUtils.PeriodBetween(DateTime.Now + savedBefore * DateTime.TicksPerSecond, Start) Log(p)