BF2Statistics.S2hmsForm.SetTime C# (CSharp) Method

SetTime() public method

public SetTime ( int Seconds ) : void
Seconds int
return void
        public void SetTime(int Seconds)
        {
            TimeSpan t = TimeSpan.FromSeconds(Seconds);
            int Hours = t.Hours;

            // If we have more then 24 hours, then we need to
            // convert the days to hours
            if (t.Days > 0)
                Hours += t.Days * 24;

            // Format
            HoursBox.Value = Hours;
            MinutesBox.Value = t.Minutes;
            SecondsBox.Value = t.Seconds;
        }