From 178e25e4dba37decbcbc389955539997e0321df7 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 31 Jul 2020 19:28:46 +0300 Subject: Fixed total dye time formating on PPC and MS. --- .../Tango.Core/ExtensionMethods/TimeSpanExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Software/Visual_Studio/Tango.Core/ExtensionMethods/TimeSpanExtensions.cs (limited to 'Software/Visual_Studio/Tango.Core/ExtensionMethods') diff --git a/Software/Visual_Studio/Tango.Core/ExtensionMethods/TimeSpanExtensions.cs b/Software/Visual_Studio/Tango.Core/ExtensionMethods/TimeSpanExtensions.cs new file mode 100644 index 000000000..0aa70f5a8 --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/ExtensionMethods/TimeSpanExtensions.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +public static class TimeSpanExtensions +{ + public static String ToStringUnlimitedHours(this TimeSpan span) + { + return $"{((int)span.TotalHours).ToString("D2")}:{span.Minutes.ToString("D2")}:{span.Seconds.ToString("D2")}"; + } +} -- cgit v1.3.1