Removing Utils directory to better match namespaces

This commit is contained in:
Chris Cameron
2017-07-06 10:57:04 -04:00
parent c56d9fce3b
commit ac6ca84a8a
68 changed files with 65 additions and 65 deletions

View File

@@ -0,0 +1,24 @@
using System;
namespace ICD.Common.Utils.Extensions
{
/// <summary>
/// Extension methods for DateTime.
/// </summary>
public static class DateTimeExtensions
{
/// <summary>
/// Gets a string representation of the DateTime with millisecond precision.
/// </summary>
/// <param name="extends"></param>
/// <returns></returns>
public static string ToLongTimeStringWithMilliseconds(this DateTime extends)
{
if (extends == null)
throw new ArgumentNullException("extends");
// Todo - Better handle different cultures
return extends.ToString("HH:mm:ss:fff");
}
}
}