using System;
namespace ICD.Common.Utils.Extensions
{
///
/// Extension methods for DateTime.
///
public static class DateTimeExtensions
{
///
/// Gets a string representation of the DateTime with millisecond precision.
///
///
///
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");
}
}
}