LANCommander/LANCommander.Launcher/Extensions/TimeSpanExtensions.cs
Pat Hartl 9ba9887eb1 Rename project files, namespaces, artifacts
Client has been renamed to launcher, and thus namespaces and artifact names had to change. The server project has also had some artifacts renamed in order to create a more clear separation of builds. This will break auto-updates before v0.9.0.
2024-08-04 17:53:19 -05:00

19 lines
477 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LANCommander.Launcher.Extensions
{
public static class TimeSpanExtensions
{
public static string ToShortTime(this TimeSpan timeSpan)
{
if (timeSpan.TotalHours >= 1)
return timeSpan.ToString("hh\\:mm\\:ss");
else
return timeSpan.ToString("mm\\:ss");
}
}
}