From 79d383f6f48df0078e6ba13239f9c4c94fbc9ea6 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 19 Jun 2026 02:21:16 +1000 Subject: v0.19a --- Util.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Util.cs') diff --git a/Util.cs b/Util.cs index 7de2b6e..532064e 100644 --- a/Util.cs +++ b/Util.cs @@ -35,6 +35,11 @@ public static class Extensions { return string.Format("{0:0}h{0:0}m", t.TotalHours, t.Minutes); return string.Format("{0:0.00}d", t.TotalDays); } + + public static int GetRoundedHashCode(this DateTime dt) { + var t = dt.ToUniversalTime(); + return HashCode.Combine(t.Year, t.Month, t.Date, t.Hour, t.Minute, t.Second); + } } public class LimitedConcurrencyTaskScheduler : TaskScheduler { -- cgit v1.3